Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove or fix azure* environment variables in live tests #37815

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

benbp
Copy link
Member

@benbp benbp commented Oct 9, 2024

Remove or fix azure* environment variables in live tests

@benbp
Copy link
Member Author

benbp commented Oct 9, 2024

/azp run python - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benbp benbp force-pushed the benbp/remove-hardcode-az-sub branch from 656f930 to fc7a315 Compare October 9, 2024 22:54
@benbp
Copy link
Member Author

benbp commented Oct 9, 2024

/azp run python - keyvault - tests-weekly

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -31,4 +31,4 @@ extends:
EnvVars:
AZURE_SKIP_LIVE_RECORDING: 'True'
AZURE_TEST_RUN_LIVE: 'true'
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_SUBSCRIPTION_ID: $(STORAGE_SUBSCRIPTION_ID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this set automatically? Do we need to set it explicitly? It seems like you removed it in most other places.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AZURE prefix variables are not set automatically. I removed it in places where the test code has no reference to it (i.e. where it was only used for EnvironmentCredential in the past).

sdk/keyvault/tests.yml Outdated Show resolved Hide resolved
@benbp
Copy link
Member Author

benbp commented Oct 10, 2024

/azp run python - keyvault - tests-weekly

@benbp
Copy link
Member Author

benbp commented Oct 10, 2024

/azp run python - storage - tests-weekly

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@benbp
Copy link
Member Author

benbp commented Oct 10, 2024

test

@benbp
Copy link
Member Author

benbp commented Oct 10, 2024

/check-enforcer evaluate

@benbp benbp force-pushed the benbp/remove-hardcode-az-sub branch from e83a7a2 to 600efac Compare November 13, 2024 20:28
${{ insert }}: ${{ parameters.EnvVars }}
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
azureSubscription: azure-sdk-tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to retire this connection so lets prefer azure-sdk-tests-public fi these can run in TME.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are for the samples tests which in some cases still rely on static resources in the old subscription, same deal as with Java where we decided not to migrate for now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought samples had their own arm templates if we were running them live. We should definitely be careful using static resources for testing samples as these are meant to be copy/pasted by customers.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@benbp benbp merged commit 333ec6a into Azure:main Nov 14, 2024
53 of 57 checks passed
@benbp benbp deleted the benbp/remove-hardcode-az-sub branch November 14, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants