Skip to content

Commit e60df82

Browse files
committed
Change isNFS default from null to undefined
Issue: CLDSRV-630
1 parent d1831b6 commit e60df82

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/unit/api/apiUtils/getReplicationInfo.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('getReplicationInfo helper', () => {
3838
storageClass: 'awsbackend',
3939
role: 'arn:aws:iam::root:role/s3-replication-role',
4040
storageType: 'aws_s3',
41-
isNFS: null,
41+
isNFS: undefined,
4242
});
4343
});
4444

@@ -79,7 +79,7 @@ describe('getReplicationInfo helper', () => {
7979
storageClass: 'awsbackend',
8080
role: 'arn:aws:iam::root:role/s3-replication-role',
8181
storageType: 'aws_s3',
82-
isNFS: null,
82+
isNFS: undefined,
8383
});
8484
});
8585

@@ -110,7 +110,7 @@ describe('getReplicationInfo helper', () => {
110110
storageClass: 'awsbackend,azurebackend',
111111
role: 'arn:aws:iam::root:role/s3-replication-role',
112112
storageType: 'aws_s3,azure',
113-
isNFS: null,
113+
isNFS: undefined,
114114
});
115115
});
116116

@@ -143,7 +143,7 @@ describe('getReplicationInfo helper', () => {
143143
storageClass: 'awsbackend:preferred_read,azurebackend',
144144
role: 'arn:aws:iam::root:role/s3-replication-role',
145145
storageType: 'aws_s3,azure',
146-
isNFS: null,
146+
isNFS: undefined,
147147
});
148148
});
149149

@@ -207,7 +207,7 @@ describe('getReplicationInfo helper', () => {
207207
storageClass: 'awsbackend',
208208
role: 'arn:aws:iam::root:role/s3-replication-role',
209209
storageType: 'aws_s3',
210-
isNFS: null,
210+
isNFS: undefined,
211211
});
212212
});
213213
});

tests/unit/api/objectReplicationMD.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ describe('Replication object MD without bucket replication config', () => {
306306
'arn:aws:iam::account-id:role/dest-resource',
307307
storageType: '',
308308
dataStoreVersionId: '',
309-
isNFS: null,
309+
isNFS: undefined,
310310
};
311311
const newReplicationMD = hasStorageClass ? Object.assign(replicationMD,
312312
{ storageClass: storageClassType }) : replicationMD;
@@ -538,7 +538,7 @@ describe('Replication object MD without bucket replication config', () => {
538538
role: 'arn:aws:iam::account-id:role/resource',
539539
storageType,
540540
dataStoreVersionId: '',
541-
isNFS: null,
541+
isNFS: undefined,
542542
};
543543

544544
// Expected for a metadata-only replication operation (for

0 commit comments

Comments
 (0)