-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[AppConfig] Re-record tests with Test proxy #33902
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8024c6e
integrate with rest proxy
samvaity 4080be0
add sanitizers and matchers
samvaity 843aa13
update version dep
samvaity ef221d7
cleanup + re-recordings
samvaity b2ba672
add matcher and LIVE mode changes
samvaity 1b2c884
update new recordings
samvaity 5932502
add matcher
samvaity 255ca9c
refactor
samvaity 2acd440
refactor + test updates
samvaity bc08a81
udpatetests
samvaity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 53 additions & 32 deletions
85
.../test/resources/session-records/AadCredentialTest.aadAuthenticationAzConfigClient[1].json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,54 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.azconfig.io/kv/newKey?api-version=1.0", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-data-appconfiguration/1.5.0-beta.1 (11.0.10; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "68039daf-5cbf-42c0-8f7d-1a261e67254d", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"Server" : "openresty/1.21.4.1", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Connection" : "keep-alive", | ||
"Last-Modified" : "Wed, 08 Mar 2023 22:02:54 GMT", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"Date" : "Wed, 08 Mar 2023 22:02:54 GMT", | ||
"x-ms-correlation-request-id" : "d53eb0ee-7df1-4439-ad9a-cbec9501ce12", | ||
"Strict-Transport-Security" : "max-age=15724800; includeSubDomains", | ||
"Access-Control-Expose-Headers" : "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, x-ms-effective-locale, WWW-Authenticate, traceparent, tracestate", | ||
"ETag" : "\"GYH5WDQh5JsfxcRY5mVr0-wUgbyfGEUJlmdNpOXaxJE\"", | ||
"Access-Control-Allow-Credentials" : "true", | ||
"Sync-Token" : "zAJw6V16=MjoyMCM0MjIzMDU5;sn=4223059", | ||
"x-ms-request-id" : "d53eb0ee-7df1-4439-ad9a-cbec9501ce12", | ||
"Body" : "{\"etag\":\"GYH5WDQh5JsfxcRY5mVr0-wUgbyfGEUJlmdNpOXaxJE\",\"key\":\"newKey\",\"label\":null,\"content_type\":null,\"value\":\"newValue\",\"tags\":{},\"locked\":false,\"last_modified\":\"2023-03-08T22:02:54+00:00\"}", | ||
"x-ms-client-request-id" : "68039daf-5cbf-42c0-8f7d-1a261e67254d", | ||
"Content-Type" : "application/vnd.microsoft.appconfig.kv+json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} | ||
"Entries": [ | ||
{ | ||
"RequestUri": "https://REDACTED/kv/newKey?api-version=1.0", | ||
"RequestMethod": "PUT", | ||
"RequestHeaders": { | ||
"Accept": "application/vnd.microsoft.azconfig.kv\u002Bjson", | ||
"Authorization": "Sanitized", | ||
"Content-Length": "60", | ||
"Content-Type": "application/json", | ||
"Date": "Wed, 05 Apr 2023 02:25:30 GMT", | ||
"Sync-Token": "", | ||
"User-Agent": "azsdk-java-azure-data-appconfiguration/1.5.0-beta.1 (17.0.1; Windows 11; 10.0)", | ||
"x-ms-client-request-id": "ab86eff1-c976-4de9-8d39-47931c47b8e3", | ||
"x-ms-return-client-request-id": "true" | ||
}, | ||
"RequestBody": { | ||
"key": "newKey", | ||
"value": "newValue", | ||
"tags": {}, | ||
"locked": false | ||
}, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"Access-Control-Allow-Credentials": "true", | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Expose-Headers": "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, x-ms-effective-locale, WWW-Authenticate, traceparent, tracestate", | ||
"Connection": "keep-alive", | ||
"Content-Type": "application/vnd.microsoft.appconfig.kv\u002Bjson; charset=utf-8", | ||
"Date": "Wed, 05 Apr 2023 02:25:33 GMT", | ||
"ETag": "\u0022myvDafxHUtyNUDgFV2-lvAamc3jj4LwCAM-Ku-TJRTI\u0022", | ||
"Last-Modified": "Wed, 05 Apr 2023 02:25:33 GMT", | ||
"Server": "openresty/1.21.4.1", | ||
"Strict-Transport-Security": "max-age=15724800; includeSubDomains", | ||
"Sync-Token": "zAJw6V16=MjoyMCM0MjgwNzk5;sn=4280799", | ||
"Transfer-Encoding": "chunked", | ||
"x-ms-client-request-id": "ab86eff1-c976-4de9-8d39-47931c47b8e3", | ||
"x-ms-correlation-request-id": "0da178ec-df71-41f2-bea6-d3f7554e13d5", | ||
"x-ms-request-id": "0da178ec-df71-41f2-bea6-d3f7554e13d5" | ||
}, | ||
"ResponseBody": { | ||
"etag": "myvDafxHUtyNUDgFV2-lvAamc3jj4LwCAM-Ku-TJRTI", | ||
"key": "newKey", | ||
"label": null, | ||
"content_type": null, | ||
"value": "newValue", | ||
"tags": {}, | ||
"locked": false, | ||
"last_modified": "2023-04-05T02:25:33\u002B00:00" | ||
} | ||
} | ||
], | ||
"Variables": {} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same idea - add calling
setHttpClient
somewhere.