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

Default to ResponseFormat.ReturnNoContent on AddEntity #14462

Merged

Conversation

christothes
Copy link
Member

Closes #14459

@christothes christothes self-assigned this Aug 21, 2020
@ghost ghost added the Tables label Aug 21, 2020
@christothes christothes requested a review from ellismg August 21, 2020 20:21
Copy link
Member

@ellismg ellismg left a comment

Choose a reason for hiding this comment

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

LGTM - I had a question for myself to learn more about how the test framework works here in .NET land, and I'll admit that I didn't review all the recordings, but I did look at the recordings for CreateEntity to see that they matched my expectations.

@@ -14,14 +14,14 @@ public TablesTestEnvironment() : base("tables")
// Storage Tables
public const string PrimaryStorageKeyEnvironmentVariableName = "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY";
private const string StorageUriFormat = "https://{0}.table.core.windows.net";
public string PrimaryStorageAccountKey => GetRecordedVariable(PrimaryStorageKeyEnvironmentVariableName, options => options.IsSecret());
public string PrimaryStorageAccountKey => GetRecordedVariable(PrimaryStorageKeyEnvironmentVariableName, options => options.IsSecret(SanitizedValue.Base64));
Copy link
Member

Choose a reason for hiding this comment

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

So I can learn more about this stuff, do you mind telling me why this change was made?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah - this was a recent feature change to how sanitized values are configured for recording tests. So when I re-recorded I changed to the new pattern which allows this storage key value to be "sanitized" to a safe value. The SanitizedValue.Base64 enum indicates to transform this string value into a bare minimum base64 string value.

@christothes christothes merged commit d89dbc0 into Azure:master Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default ResponseFormat on InsertEntity to ReturnNoContent
2 participants