@@ -1336,10 +1336,9 @@ describe('admin.auth', () => {
13361336 clientId : 'CLIENT_ID1' ,
13371337 responseType : {
13381338 idToken : true ,
1339- code : false ,
13401339 } ,
13411340 } ;
1342- const modifiedConfigOptions = {
1341+ const deltaChanges = {
13431342 displayName : 'OIDC_DISPLAY_NAME3' ,
13441343 enabled : false ,
13451344 issuer : 'https://oidc.com/issuer3' ,
@@ -1350,6 +1349,17 @@ describe('admin.auth', () => {
13501349 code : true ,
13511350 } ,
13521351 } ;
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+ } ;
13531363
13541364 before ( function ( ) {
13551365 if ( ! createdTenantId ) {
@@ -1378,12 +1388,10 @@ describe('admin.auth', () => {
13781388 . then ( ( config ) => {
13791389 assertDeepEqualUnordered ( authProviderConfig , config ) ;
13801390 return tenantAwareAuth . updateProviderConfig (
1381- authProviderConfig . providerId , modifiedConfigOptions ) ;
1391+ authProviderConfig . providerId , deltaChanges ) ;
13821392 } )
13831393 . then ( ( config ) => {
1384- const modifiedConfig = deepExtend (
1385- { providerId : authProviderConfig . providerId } , modifiedConfigOptions ) ;
1386- assertDeepEqualUnordered ( modifiedConfig , config ) ;
1394+ assertDeepEqualUnordered ( modifiedConfigOptions , config ) ;
13871395 return tenantAwareAuth . deleteProviderConfig ( authProviderConfig . providerId ) ;
13881396 } )
13891397 . then ( ( ) => {
0 commit comments