blob: 125e5c7d97fc4f515e9ad4a8de981901d8718d08 [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001/*!
svishnev8f133302018-08-06 23:08:39 +03002 * Copyright © 2016-2018 European Support Limited
AviZi280f8012017-06-09 02:39:56 +03003 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16import { Factory } from 'rosie';
svishnev8f133302018-08-06 23:08:39 +030017import { overviewEditorHeaders } from 'sdc-app/onboarding/licenseModel/overview/LicenseModelOverviewConstants.js';
AviZi280f8012017-06-09 02:39:56 +030018import IdMixin from 'test-utils/factories/mixins/IdMixin.js';
19
svishnev8f133302018-08-06 23:08:39 +030020Factory.define('FeatureGroupBaseFactory').attrs({
21 name: 'featureGroup',
22 description: 'description'
23});
AviZi280f8012017-06-09 02:39:56 +030024
25Factory.define('FeatureGroupExtendedBaseFactory')
svishnev8f133302018-08-06 23:08:39 +030026 .extend('FeatureGroupBaseFactory')
27 .attrs({
28 partNumber: '1212'
29 });
AviZi280f8012017-06-09 02:39:56 +030030
31export const FeatureGroupListItemFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030032 .extend('FeatureGroupBaseFactory')
33 .extend(IdMixin)
34 .attrs({
35 children: [],
36 isCollapsed: true,
37 itemType: overviewEditorHeaders.FEATURE_GROUP
38 });
AviZi280f8012017-06-09 02:39:56 +030039
40export const FeatureGroupDispatchFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030041 .extend('FeatureGroupExtendedBaseFactory')
42 .attrs({
43 licenseKeyGroupsIds: [],
44 entitlementPoolsIds: []
45 });
AviZi280f8012017-06-09 02:39:56 +030046
47export const FeatureGroupStoreFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030048 .extend('FeatureGroupExtendedBaseFactory')
49 .extend(IdMixin)
50 .attrs({
51 licenseKeyGroupsIds: [],
52 entitlementPoolsIds: [],
53 referencingLicenseAgreements: []
54 });
AviZi280f8012017-06-09 02:39:56 +030055
56export const FeatureGroupDataListFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030057 .extend('FeatureGroupExtendedBaseFactory')
58 .extend(IdMixin)
59 .attrs({
60 licenseKeyGroupsIds: [],
61 entitlementPoolsIds: [],
62 referencingLicenseAgreements: [],
63 children: [],
64 itemType: overviewEditorHeaders.FEATURE_GROUP
65 });
AviZi280f8012017-06-09 02:39:56 +030066
67export const FeatureGroupPostFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030068 .extend('FeatureGroupExtendedBaseFactory')
69 .attrs({
70 addedLicenseKeyGroupsIds: [],
71 addedEntitlementPoolsIds: []
72 });
AviZi280f8012017-06-09 02:39:56 +030073
74export const FeatureGroupPutFactory = new Factory()
svishnev8f133302018-08-06 23:08:39 +030075 .extend('FeatureGroupExtendedBaseFactory')
76 .attrs({
77 addedLicenseKeyGroupsIds: [],
78 addedEntitlementPoolsIds: [],
79 removedLicenseKeyGroupsIds: [],
80 removedEntitlementPoolsIds: []
81 });