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(),
export const VSPComponentsNetworkFactory = new Factory()
.attrs({
nicEditor: {},
- nicList: []
+ nicList: [],
+ nicCreation: {}
});
export const VSPComponentsNetworkQDataFactory = 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: []
}
});