Skip to content

Test SDK does not record all requests in recording mode #25928

@yuwzho

Description

@yuwzho

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

Describe the bug

I cannot find the matcher in my recorded yaml if there are many same request.

To Reproduce

  1. I have a command with more than one PATCH request to one resource.
  2. Delete the recording yaml
  3. Run the test, the request only recorded once.
  4. When re-run the test, it cannot find the correct mapping. See Confusing error message if play count mismatches kevin1024/vcrpy#516

Expected behavior

I belive this line only count live mode in but ignore the record mode.

Environment summary

Additional context

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamInstallationOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions