From c3eb464cc2d6b0ff6273527d51a40344ddd31582 Mon Sep 17 00:00:00 2001 From: v-soujanya Date: Mon, 18 Dec 2023 17:15:35 +0530 Subject: [PATCH] replacing the test org due to PAT expire issue for Existing org --- .../azure-pipelines-live-test-run.yml | 42 +++++++++---------- tests/test_boardsIterationTest.py | 2 +- tests/test_boardsQueryTest.py | 2 +- tests/test_boardsRelationTest.py | 2 +- tests/test_boardsWorkItemTest.py | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-live-test-run.yml b/.azure-pipelines/azure-pipelines-live-test-run.yml index 7c65e1f5..bc85ca5c 100644 --- a/.azure-pipelines/azure-pipelines-live-test-run.yml +++ b/.azure-pipelines/azure-pipelines-live-test-run.yml @@ -62,24 +62,24 @@ jobs: - template: templates/download-install-local-azure-devops-cli-extension.yml - # Run a Python script. - # - task: PythonScript@0 - # inputs: - # scriptSource: 'filePath' - # scriptPath: 'scripts/prepareLiveRecordingTestsRun.py' - # failOnStderr: true - # env: - # AZURE_DEVOPS_EXT_PAT: $(pat) - - # - script: pytest tests --junitxml "TEST-results.xml" - # displayName: 'Run Live Tests' - # env: - # AZURE_DEVOPS_EXT_PAT: $(pat) - - # - task: PublishTestResults@2 - # displayName: 'Publish Test Results' - # inputs: - # testResultsFormat: 'JUnit' - # testResultsFiles: '**TEST-*.xml' - # searchFolder: '$(System.DefaultWorkingDirectory)' - # condition: succeededOrFailed() + Run a Python script. + - task: PythonScript@0 + inputs: + scriptSource: 'filePath' + scriptPath: 'scripts/prepareLiveRecordingTestsRun.py' + failOnStderr: true + env: + AZURE_DEVOPS_EXT_PAT: $(pat) + + - script: pytest tests --junitxml "TEST-results.xml" + displayName: 'Run Live Tests' + env: + AZURE_DEVOPS_EXT_PAT: $(pat) + + - task: PublishTestResults@2 + displayName: 'Publish Test Results' + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: '**TEST-*.xml' + searchFolder: '$(System.DefaultWorkingDirectory)' + condition: succeededOrFailed() diff --git a/tests/test_boardsIterationTest.py b/tests/test_boardsIterationTest.py index aec35743..aabc0ee3 100644 --- a/tests/test_boardsIterationTest.py +++ b/tests/test_boardsIterationTest.py @@ -9,7 +9,7 @@ from azure_devtools.scenario_tests import AllowLargeResponse from .utilities.helper import DevopsScenarioTest, disable_telemetry, set_authentication, get_test_org_from_env_variable -DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/devops-cli-test-org' +DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'https://dev.azure.com/ChatOpstestOrg' class BoardsIterationsTest(DevopsScenarioTest): @AllowLargeResponse(size_kb=3072) diff --git a/tests/test_boardsQueryTest.py b/tests/test_boardsQueryTest.py index ae70f276..18ee90af 100644 --- a/tests/test_boardsQueryTest.py +++ b/tests/test_boardsQueryTest.py @@ -9,7 +9,7 @@ from azure_devtools.scenario_tests import AllowLargeResponse from .utilities.helper import DevopsScenarioTest, disable_telemetry, set_authentication, get_test_org_from_env_variable -DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/devops-cli-test-org' +DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'https://dev.azure.com/ChatOpstestOrg' class BoardsQueryTests(DevopsScenarioTest): @AllowLargeResponse(size_kb=3072) diff --git a/tests/test_boardsRelationTest.py b/tests/test_boardsRelationTest.py index c0f320e5..377f16e0 100644 --- a/tests/test_boardsRelationTest.py +++ b/tests/test_boardsRelationTest.py @@ -8,7 +8,7 @@ from azure_devtools.scenario_tests import AllowLargeResponse from .utilities.helper import DevopsScenarioTest, disable_telemetry, set_authentication, get_test_org_from_env_variable -DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/devops-cli-test-org' +DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'https://dev.azure.com/ChatOpstestOrg' class BoardsRelationsTest(DevopsScenarioTest): def validate_relation_count_on_work_item(self, work_item_set, relation_count_set): diff --git a/tests/test_boardsWorkItemTest.py b/tests/test_boardsWorkItemTest.py index 50029708..1c684cf3 100644 --- a/tests/test_boardsWorkItemTest.py +++ b/tests/test_boardsWorkItemTest.py @@ -11,7 +11,7 @@ from azure_devtools.scenario_tests import AllowLargeResponse from .utilities.helper import DevopsScenarioTest, disable_telemetry, set_authentication, get_test_org_from_env_variable -DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/devops-cli-test-org' +DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'https://dev.azure.com/ChatOpstestOrg' class BoardsWorkItemTests(DevopsScenarioTest): @AllowLargeResponse(size_kb=3072)