@@ -71,7 +71,7 @@ public async Task Restore_ShouldSucceed(string testName, DataSet dataSet, bool p
7171 if ( dataSet . HasExternalModules )
7272 {
7373 // ensure something got restored
74- CachedModules . GetCachedRegistryModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
74+ CachedModules . GetCachedModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
7575 . And . AllSatisfy ( m => m . Should ( ) . HaveSource ( publishSource ) ) ;
7676 }
7777 }
@@ -90,7 +90,7 @@ public async Task Restore_should_succeed_for_bicepparam_file_with_registry_refer
9090 result . Should ( ) . Succeed ( ) . And . NotHaveStdout ( ) . And . NotHaveStderr ( ) ;
9191
9292 // ensure something got restored
93- CachedModules . GetCachedRegistryModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides ! . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
93+ CachedModules . GetCachedModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides ! . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
9494 . And . AllSatisfy ( m => m . Should ( ) . NotHaveSource ( ) ) ;
9595 }
9696
@@ -117,13 +117,13 @@ public async Task Restore_ShouldSucceedWithAnonymousClient(string testName, Data
117117 // this will force fallback to the anonymous client
118118 var clientFactoryForRestore = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
119119 clientFactoryForRestore
120- . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , It . IsAny < Uri > ( ) , It . IsAny < string > ( ) ) )
120+ . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , It . IsAny < Uri > ( ) , It . IsAny < string > ( ) ) )
121121 . Returns ( clientWithCredentialUnavailable . Object ) ;
122122
123123 // anonymous client creation will redirect to the working client factory containing mock published modules
124124 clientFactoryForRestore
125- . Setup ( m => m . CreateAnonymousBlobClient ( It . IsAny < RootConfiguration > ( ) , It . IsAny < Uri > ( ) , It . IsAny < string > ( ) ) )
126- . Returns < RootConfiguration , Uri , string > ( clientFactory . CreateAnonymousBlobClient ) ;
125+ . Setup ( m => m . CreateAnonymousBlobClient ( It . IsAny < CloudConfiguration > ( ) , It . IsAny < Uri > ( ) , It . IsAny < string > ( ) ) )
126+ . Returns < CloudConfiguration , Uri , string > ( clientFactory . CreateAnonymousBlobClient ) ;
127127
128128 var settings = new InvocationSettings ( new ( TestContext , RegistryEnabled : dataSet . HasExternalModules ) , clientFactoryForRestore . Object , templateSpecRepositoryFactory ) ;
129129 TestContext . WriteLine ( $ "Cache root = { settings . FeatureOverrides ! . CacheRootDirectory } ") ;
@@ -139,7 +139,7 @@ public async Task Restore_ShouldSucceedWithAnonymousClient(string testName, Data
139139 if ( dataSet . HasExternalModules )
140140 {
141141 // ensure something got restored
142- CachedModules . GetCachedRegistryModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
142+ CachedModules . GetCachedModules ( BicepTestConstants . FileSystem , settings . FeatureOverrides . CacheRootDirectory ! ) . Should ( ) . HaveCountGreaterThan ( 0 )
143143 . And . AllSatisfy ( m => m . Should ( ) . HaveSource ( publishSource ) ) ;
144144 }
145145 }
@@ -309,7 +309,7 @@ public async Task Restore_With_Force_Should_Overwrite_Existing_Cache(bool publis
309309 var client = new MockRegistryBlobClient ( ) ;
310310
311311 var clientFactory = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
312- clientFactory . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , registryUri , repository ) ) . Returns ( client ) ;
312+ clientFactory . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , registryUri , repository ) ) . Returns ( client ) ;
313313
314314 var templateSpecRepositoryFactory = BicepTestConstants . TemplateSpecRepositoryFactory ;
315315
@@ -430,7 +430,7 @@ public async Task Restore_ByDigest_ShouldSucceed(bool publishSource)
430430 var client = new MockRegistryBlobClient ( ) ;
431431
432432 var clientFactory = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
433- clientFactory . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , registryUri , repository ) ) . Returns ( client ) ;
433+ clientFactory . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , registryUri , repository ) ) . Returns ( client ) ;
434434
435435 var templateSpecRepositoryFactory = BicepTestConstants . TemplateSpecRepositoryFactory ;
436436
@@ -517,7 +517,7 @@ public async Task Restore_AggregateExceptionWithInnerRequestFailedExceptions_Sho
517517
518518 var clientFactory = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
519519 clientFactory
520- . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , new Uri ( "https://fake" ) , "fake" ) )
520+ . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , new Uri ( "https://fake" ) , "fake" ) )
521521 . Returns ( client . Object ) ;
522522
523523 var templateSpecRepositoryFactory = StrictMock . Of < ITemplateSpecRepositoryFactory > ( ) ;
@@ -549,7 +549,7 @@ public async Task Restore_RequestFailedException_ShouldFail()
549549
550550 var clientFactory = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
551551 clientFactory
552- . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , new Uri ( "https://fake" ) , "fake" ) )
552+ . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , new Uri ( "https://fake" ) , "fake" ) )
553553 . Returns ( client . Object ) ;
554554
555555 var templateSpecRepositoryFactory = StrictMock . Of < ITemplateSpecRepositoryFactory > ( ) ;
@@ -578,7 +578,7 @@ public async Task Restore_bicepparam_should_fail_with_error_diagnostics_for_regi
578578
579579 var clientFactory = StrictMock . Of < IContainerRegistryClientFactory > ( ) ;
580580 clientFactory
581- . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < RootConfiguration > ( ) , new Uri ( "https://mockregistry.io" ) , "parameters/basic" ) )
581+ . Setup ( m => m . CreateAuthenticatedBlobClient ( It . IsAny < CloudConfiguration > ( ) , new Uri ( "https://mockregistry.io" ) , "parameters/basic" ) )
582582 . Returns ( client . Object ) ;
583583
584584 var templateSpecRepositoryFactory = StrictMock . Of < ITemplateSpecRepositoryFactory > ( ) ;
0 commit comments