Add API-Version update in Spector tests
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 90
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 156
Description
We need a new test in "azure-http-specs", in "azure/payload/pageable", that tests the following two scenarios:
# Scenario 1
- First GET call, returns a pageable operation, where the nextLink has an `api-version` of v1
- The TypeSpec actually has an APIVersion of v2
- It's expected that when the SDK will call the nextLink to get page 2, the mock endpoint only works if the url includes "v2". If "v1" is received, the mockapi must fail saying that APIVersion should have been updated.
# Scenario 2
- First GET call, returns a pageable operation, where the nextLink doesn't have an `api-version`
- The TypeSpec actually has an APIVersion of v2
- It's expected that when the SDK will call the nextLink to get page 2, the mock endpoint only works if the url includes "v2". If no `api-version` is received, the mockapi must fail saying that APIVersion should have been added.
Contributor guide
Assessment
This issue has not been assessed yet.