From c49fc87de615b9d8045f4d3c79313bb214a73814 Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Tue, 29 Sep 2020 14:15:50 -0700 Subject: [PATCH] [Event Hubs] Canary support for live tests (#15265) * canary support for live tests * Add - before if-block * add ResourceGroupLocationCanary variable for canary location * netcoreapp instead --- eng/pipelines/templates/jobs/archetype-sdk-tests.yml | 12 ++++++++++++ sdk/eventhub/tests.yml | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index 95fc5472254e..ecfc798b0035 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -26,6 +26,12 @@ parameters: - name: SubscriptionConfiguration type: string default: $(sub-config-azure-cloud-test-resources) +- name: TestCanary + type: boolean + default: false +- name: ResourceGroupLocationCanary + type: string + default: "centraluseuap" - name: ServiceDirectory type: string default: not-specified @@ -69,6 +75,12 @@ jobs: - DisplayName: "Test on MacOS" OSVmImage: "macOS-10.15" TestTargetFramework: netcoreapp2.1 + - ${{ if eq(parameters.TestCanary, 'true') }}: + - DisplayName: "Test on Windows for NetCoreApp - Canary region" + OSVmImage: "windows-2019" + TestTargetFramework: netcoreapp2.1 + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) + Location: ${{ parameters.ResourceGroupLocationCanary }} - DisplayName: "Record on Windows for NetCoreApp" OSVmImage: "windows-2019" TestMode: Record diff --git a/sdk/eventhub/tests.yml b/sdk/eventhub/tests.yml index b2009cd2c5d7..d2f1707c1c9d 100644 --- a/sdk/eventhub/tests.yml +++ b/sdk/eventhub/tests.yml @@ -5,4 +5,5 @@ extends: parameters: MaxParallel: 6 ServiceDirectory: eventhub - TimeoutInMinutes: 120 \ No newline at end of file + TimeoutInMinutes: 120 + TestCanary: true \ No newline at end of file