Compare commits

...

1 Commits

Author SHA1 Message Date
Bennett Buchanan 7eab07f805 feature: ZENKO-315 Set inital isNFS property false 2018-06-27 11:52:29 -07:00
3 changed files with 6 additions and 6 deletions

View File

@ -154,7 +154,7 @@ class BucketInfo {
this._cors = cors || null; this._cors = cors || null;
this._lifecycleConfiguration = lifecycleConfiguration || null; this._lifecycleConfiguration = lifecycleConfiguration || null;
this._uid = uid || uuid(); this._uid = uid || uuid();
this._isNFS = isNFS || null; this._isNFS = isNFS || false;
return this; return this;
} }
/** /**

View File

@ -120,7 +120,7 @@ class ObjectMD {
role: '', role: '',
storageType: '', storageType: '',
dataStoreVersionId: '', dataStoreVersionId: '',
isNFS: null, isNFS: false,
}, },
'dataStoreName': '', 'dataStoreName': '',
}; };
@ -720,7 +720,7 @@ class ObjectMD {
role, role,
storageType: storageType || '', storageType: storageType || '',
dataStoreVersionId: dataStoreVersionId || '', dataStoreVersionId: dataStoreVersionId || '',
isNFS: isNFS || null, isNFS: isNFS || false,
}; };
return this; return this;
} }

View File

@ -82,7 +82,7 @@ describe('ObjectMD class setters/getters', () => {
role: '', role: '',
storageType: '', storageType: '',
dataStoreVersionId: '', dataStoreVersionId: '',
isNFS: null, isNFS: false,
}], }],
['ReplicationInfo', { ['ReplicationInfo', {
status: 'PENDING', status: 'PENDING',
@ -98,10 +98,10 @@ describe('ObjectMD class setters/getters', () => {
'arn:aws:iam::account-id:role/dest-resource', 'arn:aws:iam::account-id:role/dest-resource',
storageType: 'aws_s3', storageType: 'aws_s3',
dataStoreVersionId: '', dataStoreVersionId: '',
isNFS: null, isNFS: false,
}], }],
['DataStoreName', null, ''], ['DataStoreName', null, ''],
['ReplicationIsNFS', null, null], ['ReplicationIsNFS', null, false],
['ReplicationIsNFS', true], ['ReplicationIsNFS', true],
].forEach(test => { ].forEach(test => {
const property = test[0]; const property = test[0];