2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * permissions and limitations under the License.
16 import { Factory } from 'rosie';
17 import {overviewEditorHeaders} from 'sdc-app/onboarding/licenseModel/overview/LicenseModelOverviewConstants.js';
18 import IdMixin from 'test-utils/factories/mixins/IdMixin.js';
20 Factory.define('FeatureGroupBaseFactory')
22 'name': 'featureGroup',
23 'description': 'description'
26 Factory.define('FeatureGroupExtendedBaseFactory')
27 .extend('FeatureGroupBaseFactory')
32 export const FeatureGroupListItemFactory = new Factory()
33 .extend('FeatureGroupBaseFactory')
38 itemType: overviewEditorHeaders.FEATURE_GROUP
41 export const FeatureGroupDispatchFactory = new Factory()
42 .extend('FeatureGroupExtendedBaseFactory')
44 'licenseKeyGroupsIds': [],
45 'entitlementPoolsIds': []
48 export const FeatureGroupStoreFactory = new Factory()
49 .extend('FeatureGroupExtendedBaseFactory')
52 licenseKeyGroupsIds: [],
53 entitlementPoolsIds: [],
54 referencingLicenseAgreements: []
57 export const FeatureGroupDataListFactory = new Factory()
58 .extend('FeatureGroupExtendedBaseFactory')
61 licenseKeyGroupsIds: [],
62 entitlementPoolsIds: [],
63 referencingLicenseAgreements: [],
65 itemType: overviewEditorHeaders.FEATURE_GROUP
68 export const FeatureGroupPostFactory = new Factory()
69 .extend('FeatureGroupExtendedBaseFactory')
71 addedLicenseKeyGroupsIds: [],
72 addedEntitlementPoolsIds: []
75 export const FeatureGroupPutFactory = new Factory()
76 .extend('FeatureGroupExtendedBaseFactory')
78 addedLicenseKeyGroupsIds: [],
79 addedEntitlementPoolsIds: [],
80 removedLicenseKeyGroupsIds: [],
81 removedEntitlementPoolsIds: []