26 lines
613 B
JavaScript
26 lines
613 B
JavaScript
import { Factory } from 'ember-cli-mirage';
|
|
import { random, date, datatype } from 'faker';
|
|
|
|
/**
|
|
* GeneratedManagedGroupFactory
|
|
* A managed group is a resource that represents a collection of accounts.
|
|
*/
|
|
export default Factory.extend({
|
|
name: () => random.words(),
|
|
description: () => random.words(),
|
|
created_time: () => date.recent(),
|
|
updated_time: () => date.recent(),
|
|
version: () => datatype.number(),
|
|
type: 'oidc',
|
|
attributes: function () {
|
|
switch (this.type) {
|
|
case 'oidc':
|
|
return {
|
|
filter: random.words(),
|
|
};
|
|
default:
|
|
return;
|
|
}
|
|
},
|
|
});
|