-
Notifications
You must be signed in to change notification settings - Fork 295
Migrate Keyvault tool to recorded tests
#1080
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
Merged
Merged
Changes from all commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
433ab73
save changes to keyvaultclient
scbedd 866c9ee
with that challenge disable, we are able to pass a keyvault list test!
scbedd f10c62b
KeyVaultService restored to main
scbedd debc106
saving original version premerge
scbedd d96c71c
add a tsp-location.yaml
scbedd d2f2a99
need to update emitter output location. but it's working!
scbedd defb2d3
Merge branch 'main' into support-record-playback-via-url-rewrite
scbedd bbbf0e2
configure test-proxy to download for the package
scbedd e6860dd
adding generated test proxy client (with some manual modifications fo…
scbedd b2f51cb
update emitter-package.json. updates to reflect new TestProxy stuff. …
scbedd 9e6555d
save changes. still need to refine quite a bit
scbedd 6cc2a9c
simplify TestProxy.cs
scbedd 0f191a6
merge main
scbedd 04b75ee
heading towards a class fixture approach
scbedd c56c4a1
add proxy class fixture to CommandTestsBase
scbedd 551717c
a class fixture will suck unfortunately. it requires a change to all …
scbedd 2ae6530
we are actually interacting with the proxy now. once per class fixtur…
scbedd 8e4ad5c
we are actually booting the proxy and grabbing the port now
scbedd 4de3571
going to need to regenerate pointing at http client unfortunately
scbedd 94f676c
organize thoughts. time to finish some last details and then get to a…
scbedd 5d4f5f8
initial usage of RecordingPathResolver
scbedd 7df3a74
saving progress
scbedd 32c195a
we have something working using the System.ClientModel generated spec…
scbedd 3d4e949
enable debug mode
scbedd d55508b
progress update
scbedd 6136811
successfully starting recording. time for delegate and submit for PR
scbedd f683320
Merge branch 'main' into support-record-playback-via-url-rewrite
scbedd b97f17f
add RecordingRedirectHandler, update HttpClientService to utilize it.…
scbedd 121146a
cleaning up test mode. adding a couple static functions. time to inte…
scbedd 8af0813
more integration fixes.
scbedd 2d15c48
ensure that we use the injected httpclient in KeyVaultClient
scbedd 6020f81
ensure that the base-uri that we pass in will work just fine
scbedd 45a26fc
enable playback!
scbedd b91082d
broken state, but want to checkpoint before I turn chatgpt lose on a …
scbedd 26bcdb4
finishing off the refactor to not re-implement a bunch of code
scbedd 66eabb0
Merge branch 'main' into support-record-playback-via-url-rewrite
scbedd ff89ff2
target a version of the proxy that supports our necessary baseuri
scbedd 9ffb1d6
successfully recorded all the default Azure Keyvault tests
scbedd c80c804
fixes for properly attaching TestProxy stderr to the failure output
scbedd 7c2cb27
add safety around the output
scbedd 8912415
download the client appropriately
scbedd 0abcbad
fix a bit more around caching. time to re-integrate
scbedd dc83bbd
ensure we write the version.txt into downloaded proxy directory too
scbedd 4c45da8
stabilization. removing previous references to feed. time to integrat…
scbedd 9151ab4
fix up formatting
scbedd c7b6591
this _should_ cause CI to begin working
scbedd 5e620a5
ok. NOW RecordedTestsBase should work
scbedd a1f2e20
move code changes behind #if DEBUG!
scbedd ebc6324
adjustments for only injecting redirect code on debug builds
scbedd e128dd4
apply formatting updates
scbedd 8e575f0
Update tools/Azure.Mcp.Tools.KeyVault/src/Services/KeyVaultService.cs
scbedd bdd048c
deleted a useless test
scbedd 5a0a052
Merge branch 'support-record-playback-via-url-rewrite' of https://git…
scbedd 5097940
Merge branch 'main' into support-record-playback-via-url-rewrite
scbedd f07f26d
cleaning up around token credential. need to move the test mode to pu…
scbedd 442693f
swap to testsettings test mode. TestProxyFixture still using environm…
scbedd b2b2442
use testmode everywhere instead of environment variable
scbedd e0b61b2
add TestMode to generated testsettings file. honor testmode from Live…
scbedd 5d8a318
and now we properly honor TestMode! woot!
scbedd 71ae164
remove useless warning disable in Azure.Mcp.Tests. clean up a couple …
scbedd e619616
Merge branch 'main' into support-record-playback-via-url-rewrite
scbedd 60ed438
updating to PascalCase
scbedd e642a1c
add generation readme, remove eng/emitter-package.json
scbedd 9df0a1a
update path that the file should be dropped under
scbedd 2cbd769
properly update with file name
scbedd c181010
changes to support disabling default sanitizers, adding default sanit…
scbedd 1aba28d
clean DisposeAsync. now we properly attach proxy stderr again when a …
scbedd d8e3429
add support for recording variables into RecordedCommandTestsBase. no…
scbedd 8c8d0c3
fix issue with not saving variables in live mode
scbedd 957bd10
ensure we don't throw when we shouldn't
scbedd ae278e9
merge main
scbedd b0a9813
resolve spelling by updating cspell dictionary + correcting spelling …
scbedd c71e82c
accepting PR feedback
scbedd b7b550a
remove nowarn addition
scbedd 7af12a9
save progress, we're getting the recordingid available for overriding…
scbedd 0584623
we're now able to set a custom matcher through an attribute.
scbedd aab710b
include updates for matcher
scbedd f43a353
merge main!
scbedd 04bf1a9
pull across the matcher changes
scbedd b93ca9d
Merge branch 'main' into proxy-integration-tests-and-matcher
scbedd 98745a4
we now support global and per-test override of sanitizers
scbedd 904b1a5
commit stable. still need to do a BUNCH of cleanup of these tests, bu…
scbedd eb609d9
dotnet format. tests now passing. lets see how they handle CI
scbedd 3f55337
some small changes to tests
scbedd aafc94a
remove the extra files that hav eno reason to exist here
scbedd 10172fe
massive cleanup on the Test Proxy integration tests. eliminated code …
scbedd 7943af6
cleanup some nitpicks that copilot caught
scbedd 1290d49
apply formatting
scbedd 76dc0c4
override LoadSettings() so that the new proxy integration tests ignor…
scbedd 7f30055
sneaky little bug in how stuff was being called. the livetest setting…
scbedd d69978d
fix the issue with Settings not being initialized
scbedd 7e6f4bd
somehow a build entirely failed. not certain how I msessed it up
scbedd 1ae90ca
fix the downloading of the client on linux machines
scbedd 9459a5a
formatting
scbedd 97da555
revert wonky merge
scbedd 07b4a84
Merge branch 'main' into proxy-integration-tests-and-matcher
scbedd f0b7b46
Merge branch 'proxy-integration-tests-and-matcher' into migrate-kv-to…
scbedd 1d601dd
do not push yet.
scbedd b9d2773
fix warning as error. time to re-record
scbedd b2981b8
placing a static fake pfx such that the cer, csr, and values within b…
scbedd 701ce5d
Merge branch 'main' into migrate-kv-to-recordings:
scbedd 026b2d5
assets.json propagation
scbedd 169dc67
adjust some defaults for the DisabledSanitizers.
scbedd a67bddd
Merge branch 'main' into migrate-kv-to-recordings
scbedd 0f6eb7a
mac doesn't support EphemeralKeySet. need to propogate to intermediat…
scbedd 22b0ec3
minor cleanup to keyvault
scbedd ce3fa8e
Update tools/Azure.Mcp.Tools.KeyVault/tests/Azure.Mcp.Tools.KeyVault.…
scbedd 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.