-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[test-recorder] can not run test case if migrate test-recorder from v3 to v4 #31088
Comments
@HarshaNalluru is it expected that we need to re-record after migrating? |
Looking at the recordings in the assets repo before and after from the PR #31087. This doesn't seem like a problem with the recorder.
New recording has a 404 error from the service.
Essentially, the live test itself has changed the requests, with the new api-version. This should reproduce as a live test too given service may not have deployed the version fully (?). |
@HarshaNalluru , yes, the new api version has not been deployed. Sorry, I posted the wrong log, now I have updated the error logs in the description as the correct one, could you help check again? thanks |
We have a rp "StandByPool" need to GA with typespec, but in previous release, it is generated from swagger which means in the past, we used test-recorder and test credential with v3+v1, but now , they should upgrade to v4+v2.
Then I met an issue when running "export TEST_MODE=record && rushx test":
don't know if this is a bug if migrate the version from v3 to v4. for v3 we use context from mocha, but for v4, we use vitestcontext from vitest
here is the test diff in my pr :
the deleted file is the test cases using test-recorder v3
and these two new files are the test cases using test-recorder-v4
Steps to repro:
1: checkout to #31087
2: clean up the .asset lib if standbypool recordings existed
3: revert the assets.json change from sdk/standbypool/arm-standbypool as the old tag was recorded with v3+v1
4: run
rush update && rush build -t @azure/arm-standbypool
andcd sdk/standbypool/arm-standbypool
5: run
export TEST_MODE=record && rushx test
Current solution:
1 delete assets.json
2 run npx dev-tool test-proxy init
3 re-run test cases with record mode
4 run npx dev-tool test-proxy push
The text was updated successfully, but these errors were encountered: