8786b6fd08
* removes faker * attempts to fix global error in circle ci run * adds comments for destroyed check in file-to-array-buffer component
27 lines
623 B
JavaScript
27 lines
623 B
JavaScript
import { Factory, trait } from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
auth: null,
|
|
data: null, // populated via traits
|
|
lease_duration: 0,
|
|
lease_id: '',
|
|
renewable: true,
|
|
request_id: '22068a49-a504-41ad-b5b0-1eac71659190',
|
|
warnings: null,
|
|
wrap_info: null,
|
|
|
|
// add servers to test raft storage configuration
|
|
withRaft: trait({
|
|
afterCreate(config, server) {
|
|
if (!config.data) {
|
|
config.data = {
|
|
config: {
|
|
index: 0,
|
|
servers: server.serializerOrRegistry.serialize(server.createList('server', 2)),
|
|
},
|
|
};
|
|
}
|
|
},
|
|
}),
|
|
});
|