diff options
author | Avi Ziv <avi.ziv@amdocs.com> | 2017-07-18 19:45:38 +0300 |
---|---|---|
committer | Avi Ziv <avi.ziv@amdocs.com> | 2017-07-18 19:45:38 +0300 |
commit | b8e2faf476202b6ffe61bc3a9a37df1304881d40 (patch) | |
tree | f78b8c0517d8e16c5ae610bf8b49f68ea8a312a1 /openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js | |
parent | 75aacbbe1acf78fa53378f07f0a8c7769449a17e (diff) |
[SDC] Onboarding 1710 rebase.
Change-Id: If3b6b81d221fde13908f1e8160db6f7d9433c535
Signed-off-by: Avi Ziv <avi.ziv@amdocs.com>
Diffstat (limited to 'openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js')
-rw-r--r-- | openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js index f08d282131..1226ec8317 100644 --- a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js +++ b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductComponentsNetworkFactories.js @@ -17,6 +17,13 @@ import {Factory} from 'rosie'; import randomstring from 'randomstring'; import IdMixin from 'test-utils/factories/mixins/IdMixin.js'; +export const VSPComponentsNicPostFactory = new Factory() +.attrs({ + name: () => randomstring.generate(), + description: () => randomstring.generate(), + networkDescription: () => randomstring.generate(), + networkType: 'External' +}); export const VSPComponentsNicFactory = new Factory() .attrs({ name: () => randomstring.generate(), @@ -32,7 +39,8 @@ export const VSPComponentsNicWithIdFactory = new Factory() export const VSPComponentsNetworkFactory = new Factory() .attrs({ nicEditor: {}, - nicList: [] + nicList: [], + nicCreation: {} }); export const VSPComponentsNetworkQDataFactory = new Factory() @@ -57,13 +65,18 @@ export const VSPComponentsNicFactoryGenericFieldInfo = new Factory() .attrs({ 'description' : { isValid: true, - errorText: '', - validations: [] + errorText: '', + validations: [] }, 'name' : { isValid: true, - errorText: '', - validations: [] + errorText: '', + validations: [{type: 'required', data : true}] + }, + 'networkDescription' : { + isValid: true, + errorText: '', + validations: [] } }); |