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._lifecycleConfiguration = lifecycleConfiguration || null;
this._uid = uid || uuid();
this._isNFS = isNFS || null;
this._isNFS = isNFS || false;
return this;
}
/**

View File

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

View File

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