From 26dd5ace8fa5f598d6e650f3310d131e40d110b5 Mon Sep 17 00:00:00 2001 From: jakevc Date: Fri, 12 Jul 2024 11:03:24 -0700 Subject: [PATCH] azure login --- .github/workflows/ci_mocked_api.yml | 7 +++++++ .github/workflows/ci_true_api.yml | 7 +++++++ tests/tests_mocked_api.py | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_mocked_api.yml b/.github/workflows/ci_mocked_api.yml index 6aba225..ddb4903 100644 --- a/.github/workflows/ci_mocked_api.yml +++ b/.github/workflows/ci_mocked_api.yml @@ -87,6 +87,13 @@ jobs: - name: Install Dependencies using Poetry run: poetry install + - name: Azure login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Run pytest env: SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL: "${{ secrets.SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL }}" diff --git a/.github/workflows/ci_true_api.yml b/.github/workflows/ci_true_api.yml index ad945a1..5b04248 100644 --- a/.github/workflows/ci_true_api.yml +++ b/.github/workflows/ci_true_api.yml @@ -30,6 +30,13 @@ jobs: - name: Install Dependencies using Poetry run: poetry install + - name: Azure login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Run pytest env: SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL: "${{ secrets.SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL }}" diff --git a/tests/tests_mocked_api.py b/tests/tests_mocked_api.py index 85b2e46..f4c2581 100644 --- a/tests/tests_mocked_api.py +++ b/tests/tests_mocked_api.py @@ -13,7 +13,6 @@ class TestWorkflowsMocked(TestWorkflowsBase): __test__ = True - @patch("azure.identity.DefaultAzureCredential", return_value=MagicMock()) @patch( "azure.batch.operations.TaskOperations.add", new=MagicMock(autospec=True),