Skip to content

[non-Azure] adjust test framework to prepare for unbranded test #2209

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

Merged
merged 9 commits into from
Oct 26, 2023

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Oct 25, 2023

fixes #2175

local_specification_folder = Path(f"test/{generated_sub_folder}/specification")
specification_dirs = (
[CADL_RANCH_DIR, local_specification_folder]
if local_specification_folder.exists()
Copy link
Contributor

Choose a reason for hiding this comment

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

our logic is getting too gross with generating mgmt sphere. I think we should treat mgmt sphere like we treat storage from swagger: after we merge a PR we should regenerate with mgmt sphere tsp, so we make sure we don't break it on release. Then we can get rid of the whole local specification folder. I'm good to do these in tangent with each other.

I also think we should specifically have two functions: regenerate_azure and regenerate_unbranded, we shouldn't abstract this away. Then regenerate will just have two lines: one for calling each one. The reasons are because we expect these two to be the only ones, and this way, we can also call inv regenerate-azure or inv regenerate-unbranded from the command line, which provides good support

Copy link
Member Author

Choose a reason for hiding this comment

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

(1) Agree that we shall generate from swagger repo directly. Let me do it later.
(2) Will create 2 functionsregenerate_azure and regenerate_unbranded

@msyyc msyyc changed the title adjust test framework to prepare for unbranded test [non-Azure] adjust test framework to prepare for unbranded test Oct 26, 2023
@msyyc msyyc marked this pull request as ready for review October 26, 2023 04:46
@msyyc msyyc requested a review from tadelesh as a code owner October 26, 2023 04:46
@msyyc
Copy link
Member Author

msyyc commented Oct 26, 2023

The PR is too big to maintain, so I want to merge it ASAP. And I will make other PR to continue the unbranding work.

@msyyc msyyc merged commit 769d204 into main Oct 26, 2023
@msyyc msyyc deleted the test-for-unbranded-dev2 branch October 26, 2023 04:50
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.

update imports to import from corehttp when generating with --unbranding=true
2 participants