@@ -54,7 +54,7 @@ public async Task StagingRepos()
5454 IAcrClientFactory acrClientFactory = CreateAcrClientFactory ( AcrName , acrClientMock . Object ) ;
5555
5656 CleanAcrImagesCommand command = new (
57- acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
57+ acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
5858 command . Options . RegistryName = AcrName ;
5959 command . Options . RepoName = "build-staging/*" ;
6060 command . Options . Action = CleanAcrImagesAction . Delete ;
@@ -121,7 +121,7 @@ public async Task PublicNightlyRepos()
121121 AcrName , [ repo1ContentClient , repo2ContentClient , repo3ContentClient , repo4ContentClient ] ) ;
122122
123123 CleanAcrImagesCommand command = new (
124- acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
124+ acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
125125 command . Options . RegistryName = AcrName ;
126126 command . Options . RepoName = "public/dotnet/*nightly/*" ;
127127 command . Options . Action = CleanAcrImagesAction . PruneDangling ;
@@ -166,7 +166,7 @@ public async Task DeleteEmptyTestRepo()
166166 IAcrClientFactory acrClientFactory = CreateAcrClientFactory ( AcrName , acrClientMock . Object ) ;
167167
168168 CleanAcrImagesCommand command = new (
169- acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
169+ acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
170170 command . Options . RegistryName = AcrName ;
171171 command . Options . RepoName = "test/*" ;
172172 command . Options . Action = CleanAcrImagesAction . PruneAll ;
@@ -205,7 +205,7 @@ public async Task DeleteAllExpiredImagesTestRepo()
205205 IAcrClientFactory acrClientFactory = CreateAcrClientFactory ( AcrName , acrClientMock . Object ) ;
206206
207207 CleanAcrImagesCommand command = new CleanAcrImagesCommand (
208- acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
208+ acrClientFactory , Mock . Of < IAcrContentClientFactory > ( ) , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
209209 command . Options . RegistryName = AcrName ;
210210 command . Options . RepoName = "test/*" ;
211211 command . Options . Action = CleanAcrImagesAction . PruneAll ;
@@ -254,7 +254,7 @@ public async Task TestRepos()
254254 IAcrContentClientFactory acrContentClientFactory = CreateAcrContentClientFactory ( AcrName , [ repo1ContentClientMock , repo2ContentClientMock ] ) ;
255255
256256 CleanAcrImagesCommand command = new CleanAcrImagesCommand (
257- acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
257+ acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
258258 command . Options . RegistryName = AcrName ;
259259 command . Options . RepoName = "test/*" ;
260260 command . Options . Action = CleanAcrImagesAction . PruneAll ;
@@ -311,7 +311,7 @@ public async Task DeleteEolImages()
311311 Mock < ILifecycleMetadataService > lifecycleMetadataServiceMock = CreateLifecycleMetadataServiceMock ( age , repo1Name ) ;
312312
313313 CleanAcrImagesCommand command = new CleanAcrImagesCommand (
314- acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , lifecycleMetadataServiceMock . Object , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
314+ acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , lifecycleMetadataServiceMock . Object , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
315315 command . Options . RegistryName = AcrName ;
316316 command . Options . RepoName = "test/*" ;
317317 command . Options . Action = CleanAcrImagesAction . PruneEol ;
@@ -361,7 +361,7 @@ public async Task ExcludedImages()
361361 AcrName , [ repo1ContentClient , repo2ContentClient ] ) ;
362362
363363 CleanAcrImagesCommand command = new (
364- acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
364+ acrClientFactory , acrContentClientFactory , Mock . Of < ILogger < CleanAcrImagesCommand > > ( ) , Mock . Of < ILifecycleMetadataService > ( ) , Mock . Of < IRegistryCredentialsProvider > ( ) , Microsoft . Extensions . Options . Options . Create ( new PublishConfiguration ( ) ) ) ;
365365 command . Options . RegistryName = AcrName ;
366366 command . Options . RepoName = "public/dotnet/nightly/*" ;
367367 command . Options . Action = CleanAcrImagesAction . PruneAll ;
0 commit comments