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

Add recording file location #6517

Merged
merged 5 commits into from
Jul 14, 2023
Merged

Conversation

billwert
Copy link
Contributor

There are tests in the Java repo which parse the recording files for various reasons. Add a header on the response of playback start to share that location.

I also noticed that the tests were using the wrong assertion for headers, so I changed it to check for string empty/null. (Even null is unnecessary - could be a test against String.Empty if you prefer.)

billwert added 4 commits July 14, 2023 11:45
Some tests have a need to parse data out of their recordings. When playback is started for a disk based recording, include a new header x-recording-file-location on the response which points to the recording.
…g, so `Assert.NotNull` will not catch bugs.
Comment on lines +65 to +67
[InlineData("recordings/TestStartRecordSimplé_nosave.json", "request-response")]
[InlineData("recordings/TestStartRecordSimple.json", "")]
[InlineData("recordings/TestStartRecordSimpl�.json", "")]
[InlineData("recordings/TestStartRecordSimplé.json", "")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just noticed this - VS must have "helped." Should this get reverted?

Copy link
Member

@scbedd scbedd left a comment

Choose a reason for hiding this comment

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

Resolve the test and I'll approve. I see where you're coming from.

Copy link
Member

@scbedd scbedd left a comment

Choose a reason for hiding this comment

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

Thanks @billwert

@scbedd scbedd merged commit 639c95d into Azure:main Jul 14, 2023
@billwert billwert deleted the add-recording-file-location branch July 14, 2023 19:57
@scbedd scbedd mentioned this pull request Jul 14, 2023
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.

2 participants