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

Always return dictionary from tests #22799

Merged
merged 2 commits into from
Jan 27, 2022
Merged

Always return dictionary from tests #22799

merged 2 commits into from
Jan 27, 2022

Conversation

mccoyp
Copy link
Member

@mccoyp mccoyp commented Jan 27, 2022

Description

Resolves #22787. This is a patch-up for a bug discovered by @tjprescott. After the recent change to put "x-recording-file" in the body of recording start requests, tests have stopped producing recordings whenever they don't return a dictionary. Returning anything in a test should only be necessary for tests using the variables API.

While I work on a second, more user-friendly iteration of the variables API (and track down the code that produced this bug in the test proxy tool), this change will make it unnecessary for every test to return a dictionary in order to record.

Tagging those affected by the bug and @scbedd for notifs.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • N/A Pull request includes test coverage for the included changes.
    • Tested manually with already-migrated tests

Copy link
Member

@catalinaperalta catalinaperalta left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding this meanwhile you find the fix!

@mccoyp
Copy link
Member Author

mccoyp commented Jan 27, 2022

/check-enforcer override

@mccoyp mccoyp merged commit 2162742 into Azure:main Jan 27, 2022
@mccoyp mccoyp deleted the proxy-varsfix branch January 27, 2022 19:45
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Apr 10, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this pull request Mar 2, 2023
{AzureSQLVM} fixes Azure/azure-rest-api-specs#22768 Fix the enums under AgReplica (Azure#22799)

* {AzureSQLVM} fixes Azure/azure-rest-api-specs#22768 Fix the enums under AgReplica

fixes Azure/azure-rest-api-specs#22768 

The casing seems not correct in Swagger compared to Service.

e.g.: After setting SYNCHRONOUS_COMMIT as swagger said, the value returned by Get response is Synchronous_Commit
Similar issue happens for other properties in AgReplica

* Update sqlvm.json

* Update sqlvm.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TestProxy] tests should not have to return variables to record
3 participants