From cc0b514a6b1ac76dd98b2fc04ec77a643918f6aa Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Thu, 1 Apr 2021 16:41:45 -0700 Subject: [PATCH 1/6] Add hello world samples --- .../README.md | 3 + .../samples/README.md | 14 +++ .../samples/Sample01a_HelloWorld.md | 47 +++++++ .../samples/Sample01b_HelloWorldAsync.md | 47 +++++++ .../tests/Samples/Sample01_HelloWorld.cs | 115 ++++++++++++++++++ .../HelloWorld/CreateClient.json | 6 + .../HelloWorld/CreateClientAsyncAsync.json | 6 + .../HelloWorld/HandleErrors.json | 6 + .../HelloWorld/HandleErrorsAsyncAsync.json | 6 + 9 files changed, 250 insertions(+) create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json create mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md index 924f9b46b56b3..429c2e004d649 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md @@ -66,6 +66,9 @@ We guarantee that all client instance methods are thread-safe and independent of ## Examples +* [Viewing images](#repositories) +* + ## Troubleshooting diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md new file mode 100644 index 0000000000000..83965c6a66ede --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md @@ -0,0 +1,14 @@ +--- +page_type: sample +languages: +- csharp +products: +- azure +- azure-container-registry +name: Azure.Containers.ContainerRegistry samples for .NET +description: Samples for the Azure.Containers.ContainerRegistry client library +--- + +# Azure.Containers.ContainerRegistry Samples + +- Get started either [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md). diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md new file mode 100644 index 0000000000000..9f50aba7e8e94 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md @@ -0,0 +1,47 @@ +# Azure.Containers.ContainerRegistry Samples - Hello World (sync) + +## Import the namespaces + +```C# Snippet:ContainerRegistry_Tests_Samples_Namespaces +using Azure.Containers.ContainerRegistry; +``` + +## Create a client + +Create a `ContainerRegistryClient` and send a request. + +```C# Snippet:ContainerRegistry_Tests_Samples_CreateClient +// Get the service endpoint from the environment +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create a new ContainerRegistryClient +ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + +// Perform an operation +Pageable repositories = client.GetRepositories(); +foreach (string repository in repositories) +{ + Console.WriteLine(repository); +} +``` + +## Handle Errors + +All Container Registry operations will throw a RequestFailedException on failure. + +```C# Snippet:ContainerRegistry_Tests_Samples_HandleErrors +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create an invalid ContainerRepositoryClient +string fakeRepositoryName = "doesnotexist"; +ContainerRepositoryClient client = new ContainerRepositoryClient(endpoint, fakeRepositoryName, new DefaultAzureCredential()); + +try +{ + client.GetProperties(); +} +catch (RequestFailedException ex) when (ex.Status == 404) +{ + Console.WriteLine("Repository wasn't found."); +} +``` diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md new file mode 100644 index 0000000000000..1dc85ef1ef79c --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md @@ -0,0 +1,47 @@ +# Azure.Search.Documents Samples - Hello World (async) + +## Import the namespaces + +```C# Snippet:ContainerRegistry_Tests_Samples_Namespaces +using Azure.Containers.ContainerRegistry; +``` + +## Create a client + +Create a `ContainerRegistryClient` and send a request. + +```C# Snippet:ContainerRegistry_Tests_Samples_CreateClientAsync +// Get the service endpoint from the environment +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create a new ContainerRegistryClient +ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + +// Perform an operation +AsyncPageable repositories = client.GetRepositoriesAsync(); +await foreach (string repository in repositories) +{ + Console.WriteLine(repository); +} +``` + +## Handle Errors + +All Container Registry operations will throw a RequestFailedException on failure. + +```C# Snippet:ContainerRegistry_Tests_Samples_HandleErrorsAsync +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create an invalid ContainerRepositoryClient +string fakeRepositoryName = "doesnotexist"; +ContainerRepositoryClient client = new ContainerRepositoryClient(endpoint, fakeRepositoryName, new DefaultAzureCredential()); + +try +{ + await client.GetPropertiesAsync(); +} +catch (RequestFailedException ex) when (ex.Status == 404) +{ + Console.WriteLine("Repository wasn't found."); +} +``` diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs new file mode 100644 index 0000000000000..65a873f0f3b2c --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +#region Snippet:ContainerRegistry_Tests_Samples_Namespaces +using Azure.Containers.ContainerRegistry; +#endregion Snippet:ContainerRegistry_Tests_Samples_Namespaces +using Azure.Identity; +using NUnit.Framework; + +namespace Azure.Containers.ContainerRegistry.Tests.Samples +{ +#pragma warning disable SA1649 // File name should match first type name + public class HelloWorld : ContainerRegistryRecordedTestBase +#pragma warning restore SA1649 + { + public HelloWorld(bool isAsync) : base(isAsync) + { + } + + [Test] + [SyncOnly] + public void CreateClient() + { + Environment.SetEnvironmentVariable("REGISTRY_ENDPOINT", TestEnvironment.Endpoint); + + #region Snippet:ContainerRegistry_Tests_Samples_CreateClient + // Get the service endpoint from the environment + Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + + // Create a new ContainerRegistryClient + ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + + // Perform an operation + Pageable repositories = client.GetRepositories(); + foreach (string repository in repositories) + { + Console.WriteLine(repository); + } + #endregion Snippet:ContainerRegistry_Tests_Samples_CreateClient + } + + [Test] + [AsyncOnly] + public async Task CreateClientAsync() + { + Environment.SetEnvironmentVariable("REGISTRY_ENDPOINT", TestEnvironment.Endpoint); + + #region Snippet:ContainerRegistry_Tests_Samples_CreateClientAsync + // Get the service endpoint from the environment + Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + + // Create a new ContainerRegistryClient + ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + + // Perform an operation + AsyncPageable repositories = client.GetRepositoriesAsync(); + await foreach (string repository in repositories) + { + Console.WriteLine(repository); + } + #endregion Snippet:ContainerRegistry_Tests_Samples_CreateClientAsync + } + + [Test] + [SyncOnly] + public void HandleErrors() + { + Environment.SetEnvironmentVariable("REGISTRY_ENDPOINT", TestEnvironment.Endpoint); + + #region Snippet:ContainerRegistry_Tests_Samples_HandleErrors + Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + + // Create an invalid ContainerRepositoryClient + string fakeRepositoryName = "doesnotexist"; + ContainerRepositoryClient client = new ContainerRepositoryClient(endpoint, fakeRepositoryName, new DefaultAzureCredential()); + + try + { + client.GetProperties(); + } + catch (RequestFailedException ex) when (ex.Status == 404) + { + Console.WriteLine("Repository wasn't found."); + } + #endregion Snippet:ContainerRegistry_Tests_Samples_HandleErrors + } + + [Test] + [AsyncOnly] + public async Task HandleErrorsAsync() + { + Environment.SetEnvironmentVariable("REGISTRY_ENDPOINT", TestEnvironment.Endpoint); + + #region Snippet:ContainerRegistry_Tests_Samples_HandleErrorsAsync + Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + + // Create an invalid ContainerRepositoryClient + string fakeRepositoryName = "doesnotexist"; + ContainerRepositoryClient client = new ContainerRepositoryClient(endpoint, fakeRepositoryName, new DefaultAzureCredential()); + + try + { + await client.GetPropertiesAsync(); + } + catch (RequestFailedException ex) when (ex.Status == 404) + { + Console.WriteLine("Repository wasn't found."); + } + #endregion Snippet:ContainerRegistry_Tests_Samples_HandleErrorsAsync + } + } +} diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json new file mode 100644 index 0000000000000..f1be66a4fa882 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" + } +} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json new file mode 100644 index 0000000000000..f1be66a4fa882 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" + } +} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json new file mode 100644 index 0000000000000..f1be66a4fa882 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" + } +} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json new file mode 100644 index 0000000000000..f1be66a4fa882 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" + } +} \ No newline at end of file From de5b28d79713d3ccb61dfa7bfe3e39603f22c6d2 Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Thu, 1 Apr 2021 17:00:35 -0700 Subject: [PATCH 2/6] update readme with initial samples --- .../README.md | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md index 429c2e004d649..2e06ccce60cb1 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md @@ -39,8 +39,8 @@ The [Azure Identity library][identity] provides easy Azure Active Directory supp ```C# // Create a ContainerRegistryClient that will authenticate through Active Directory -Uri registryUri = new Uri("https://MYCONTAINERREGISTRY.azurecr.io/"); -ContainerRegistryClient client = new ContainerRegistryClient(registryUri, new DefaultAzureCredential()); +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); +ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); ``` ## Key concepts @@ -66,19 +66,44 @@ We guarantee that all client instance methods are thread-safe and independent of ## Examples -* [Viewing images](#repositories) -* +### Sync examples - +- [List repositories](#list-repositories) + +### Async examples + +- [List repositories asynchronously](#list-repositories-asynchronously) ## Troubleshooting All container registry service operations will throw a [RequestFailedException][RequestFailedException] on failure. +```C# Snippet:ContainerRegistry_Tests_Samples_HandleErrors +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create an invalid ContainerRepositoryClient +string fakeRepositoryName = "doesnotexist"; +ContainerRepositoryClient client = new ContainerRepositoryClient(endpoint, fakeRepositoryName, new DefaultAzureCredential()); + +try +{ + client.GetProperties(); +} +catch (RequestFailedException ex) when (ex.Status == 404) +{ + Console.WriteLine("Repository wasn't found."); +} +``` + +You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig +deeper into the requests you're making against the service. + ## Next steps - +- Go further with Azure.Containers.ContainerRegistry and our [samples][samples] +- Watch a [demo or deep dive video](https://azure.microsoft.com/resources/videos/index/?service=container-registry) +- Read more about the [Azure Container Registry service](https://docs.microsoft.com/sazure/container-registry/container-registry-intro) ## Contributing From d78eb9a3237101e47cdf559661720d847d933109 Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Thu, 1 Apr 2021 17:08:03 -0700 Subject: [PATCH 3/6] more readme updates --- .../README.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md index 2e06ccce60cb1..c2d95b8f720b8 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md @@ -74,6 +74,44 @@ We guarantee that all client instance methods are thread-safe and independent of - [List repositories asynchronously](#list-repositories-asynchronously) +### List repositories + +Iterate through the collection of repositories in the registry. + +```C# Snippet:ContainerRegistry_Tests_Samples_CreateClient +// Get the service endpoint from the environment +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create a new ContainerRegistryClient +ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + +// Perform an operation +Pageable repositories = client.GetRepositories(); +foreach (string repository in repositories) +{ + Console.WriteLine(repository); +} +``` + +### List repositories asynchronously + +The asynchronous APIs are identical to their synchronous counterparts, but methods end with the standard .NET "Async" suffix and return a Task. + +```C# Snippet:ContainerRegistry_Tests_Samples_CreateClientAsync +// Get the service endpoint from the environment +Uri endpoint = new Uri(Environment.GetEnvironmentVariable("REGISTRY_ENDPOINT")); + +// Create a new ContainerRegistryClient +ContainerRegistryClient client = new ContainerRegistryClient(endpoint, new DefaultAzureCredential()); + +// Perform an operation +AsyncPageable repositories = client.GetRepositoriesAsync(); +await foreach (string repository in repositories) +{ + Console.WriteLine(repository); +} +``` + ## Troubleshooting All container registry service operations will throw a From f3758d28eddb10cfaf0f4bf5d0072fe35dbc0bec Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Thu, 1 Apr 2021 17:18:04 -0700 Subject: [PATCH 4/6] fix link --- .../Azure.Containers.ContainerRegistry/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md index c2d95b8f720b8..a8c05d0a6bf04 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md @@ -141,7 +141,7 @@ deeper into the requests you're making against the service. - Go further with Azure.Containers.ContainerRegistry and our [samples][samples] - Watch a [demo or deep dive video](https://azure.microsoft.com/resources/videos/index/?service=container-registry) -- Read more about the [Azure Container Registry service](https://docs.microsoft.com/sazure/container-registry/container-registry-intro) +- Read more about the [Azure Container Registry service](https://docs.microsoft.com/azure/container-registry/container-registry-intro) ## Contributing From 324d3d722186b8034da00d23b9dfbe1771c81989 Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Thu, 1 Apr 2021 17:35:03 -0700 Subject: [PATCH 5/6] update sample to use SamplesBase --- .../tests/Samples/Sample01_HelloWorld.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs index 65a873f0f3b2c..1f098810be1f7 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/Samples/Sample01_HelloWorld.cs @@ -12,14 +12,8 @@ namespace Azure.Containers.ContainerRegistry.Tests.Samples { -#pragma warning disable SA1649 // File name should match first type name - public class HelloWorld : ContainerRegistryRecordedTestBase -#pragma warning restore SA1649 + public partial class HelloWorld : SamplesBase { - public HelloWorld(bool isAsync) : base(isAsync) - { - } - [Test] [SyncOnly] public void CreateClient() From 08b0e1fd5c4e9a30b6d045aacfc2751eb036d49f Mon Sep 17 00:00:00 2001 From: Anne Loomis Thompson Date: Fri, 2 Apr 2021 08:40:34 -0700 Subject: [PATCH 6/6] remove recorded samples --- .../tests/SessionRecords/HelloWorld/CreateClient.json | 6 ------ .../SessionRecords/HelloWorld/CreateClientAsyncAsync.json | 6 ------ .../tests/SessionRecords/HelloWorld/HandleErrors.json | 6 ------ .../SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json | 6 ------ 4 files changed, 24 deletions(-) delete mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json delete mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json delete mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json delete mode 100644 sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json deleted file mode 100644 index f1be66a4fa882..0000000000000 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClient.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Entries": [], - "Variables": { - "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" - } -} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json deleted file mode 100644 index f1be66a4fa882..0000000000000 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/CreateClientAsyncAsync.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Entries": [], - "Variables": { - "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" - } -} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json deleted file mode 100644 index f1be66a4fa882..0000000000000 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrors.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Entries": [], - "Variables": { - "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" - } -} \ No newline at end of file diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json b/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json deleted file mode 100644 index f1be66a4fa882..0000000000000 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/tests/SessionRecords/HelloWorld/HandleErrorsAsyncAsync.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Entries": [], - "Variables": { - "CONTAINERREGISTRY_ENDPOINT": "https://annelocontainerregistry.azurecr.io" - } -} \ No newline at end of file