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

[@azure-tools/cadl-ranch-specs] - Handle PassOnCode, Remove Handler & Remove commonapi.ts file #755

Merged
merged 18 commits into from
Oct 18, 2024

Conversation

sarangan12
Copy link
Member

This PR consists of of the following changes:

  1. One of the was mislabled as passOnSuccess instead of passOnCode. In this PR, it is changed back to passOnCode.
  2. I am backporting the changes from the PRs: [@typespec/http-specs] - Remove handler for majority of the Scenarios microsoft/typespec#4725 & [@azure-tools/azure-http-specs] - Remove handler for majority of the Scenarios typespec-azure#1691 regarding removing the handler code. This would stop anyone from making changes to handler code in this repository and thus avoid the need of porting it back to typespec repository.
  3. With the recent fix in PR fix wrong mock api introduced by #741 #748, the test:e2e script broke. Now, in the main branch - cadl-ranch-specs repository, if you run the pnpm test:e2e script, it will error out. This is happening because in one of the scenario, the way array's are expected and the way axios is sending it. But, with the handler code removed this is automatically fixed.
  4. One of the files, commonapi.ts under authetication folder is no longer required. That file is removed.

Please review and approve the PR. Thanks

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: 0a0f8d5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@azure-tools/cadl-ranch-specs Minor
@azure-tools/cadl-ranch Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

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

Looks good but lets keep this PR open one day as a FYI for shanghai folks just in case it will break

@XiaofeiCao
Copy link
Contributor

@sarangan12 I merged a PR that contains conflicts with your PR:
#714

It reorganized ARM scenarios, mostly renames. Let me know if you run into any issues.

github-merge-queue bot pushed a commit to microsoft/typespec that referenced this pull request Oct 17, 2024
for Azure/cadl-ranch#755, as some tests validate
the exact value of some parameter/property.

for the 2 file with only format change, I guess the reason is Alan
enabled spotless on emitter Java code (so `mvn package` would
automatically format the code)
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tadelesh tadelesh left a comment

Choose a reason for hiding this comment

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

It's better to update some of tests scenario docs as this comment mentioned. Previous, many tests allow request param as any value, and return that value as response. After this PR, they are all fixed.

@sarangan12 sarangan12 merged commit caa2290 into Azure:main Oct 18, 2024
9 checks passed
github-merge-queue bot pushed a commit to microsoft/typespec that referenced this pull request Oct 21, 2024
… tests (#4799)

While working with China Team in
Azure/cadl-ranch#755, I have found that a few
changes are required in the specs to handle the test success in
`http-client-java`, `http-client-net` and `http-client-python` packages.
This PR handles those changes. The scenarios are also validated using
the `test:e2e` script.

Please review and approve the PR. Thanks
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
for Azure/cadl-ranch#755, as some tests validate
the exact value of some parameter/property.

for the 2 file with only format change, I guess the reason is Alan
enabled spotless on emitter Java code (so `mvn package` would
automatically format the code)
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
… tests (microsoft#4799)

While working with China Team in
Azure/cadl-ranch#755, I have found that a few
changes are required in the specs to handle the test success in
`http-client-java`, `http-client-net` and `http-client-python` packages.
This PR handles those changes. The scenarios are also validated using
the `test:e2e` script.

Please review and approve the PR. Thanks
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.

5 participants