@@ -1336,10 +1336,9 @@ describe('admin.auth', () => {
1336
1336
clientId : 'CLIENT_ID1' ,
1337
1337
responseType : {
1338
1338
idToken : true ,
1339
- code : false ,
1340
1339
} ,
1341
1340
} ;
1342
- const modifiedConfigOptions = {
1341
+ const deltaChanges = {
1343
1342
displayName : 'OIDC_DISPLAY_NAME3' ,
1344
1343
enabled : false ,
1345
1344
issuer : 'https://oidc.com/issuer3' ,
@@ -1350,6 +1349,17 @@ describe('admin.auth', () => {
1350
1349
code : true ,
1351
1350
} ,
1352
1351
} ;
1352
+ const modifiedConfigOptions = {
1353
+ providerId : authProviderConfig . providerId ,
1354
+ displayName : 'OIDC_DISPLAY_NAME3' ,
1355
+ enabled : false ,
1356
+ issuer : 'https://oidc.com/issuer3' ,
1357
+ clientId : 'CLIENT_ID3' ,
1358
+ clientSecret : 'CLIENT_SECRET' ,
1359
+ responseType : {
1360
+ code : true ,
1361
+ } ,
1362
+ } ;
1353
1363
1354
1364
before ( function ( ) {
1355
1365
if ( ! createdTenantId ) {
@@ -1378,12 +1388,10 @@ describe('admin.auth', () => {
1378
1388
. then ( ( config ) => {
1379
1389
assertDeepEqualUnordered ( authProviderConfig , config ) ;
1380
1390
return tenantAwareAuth . updateProviderConfig (
1381
- authProviderConfig . providerId , modifiedConfigOptions ) ;
1391
+ authProviderConfig . providerId , deltaChanges ) ;
1382
1392
} )
1383
1393
. then ( ( config ) => {
1384
- const modifiedConfig = deepExtend (
1385
- { providerId : authProviderConfig . providerId } , modifiedConfigOptions ) ;
1386
- assertDeepEqualUnordered ( modifiedConfig , config ) ;
1394
+ assertDeepEqualUnordered ( modifiedConfigOptions , config ) ;
1387
1395
return tenantAwareAuth . deleteProviderConfig ( authProviderConfig . providerId ) ;
1388
1396
} )
1389
1397
. then ( ( ) => {
0 commit comments