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

Fix context type detection logic and e2e tests for TMC context creation #807

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

vuil
Copy link
Contributor

@vuil vuil commented Sep 6, 2024

What this PR does / why we need it

Updated e2e tests to specify mission-control context type in tests
involving such contexts.

Also fixed context type detection logic so that forceCSP does not take
precedence over explicit context type provided.

Describe testing done for PR

  • Updated and ran unit tests.
  • Ran e2e tests.
  • Manually verify tanzu context create --type mission-control --force-csp creates a mission-control type context

Release note

Additional information

Special notes for your reviewer

@vuil vuil force-pushed the vuil/test-e2e-fixes branch 2 times, most recently from c00e348 to 7039b09 Compare September 7, 2024 01:00
@vuil vuil changed the title DNC, Draft: test e2e fixes Fix e2e tests for TMC context creation Sep 7, 2024
@vuil vuil marked this pull request as ready for review September 7, 2024 01:03
@vuil vuil requested a review from a team as a code owner September 7, 2024 01:03
Updated e2e tests to specify mission-control context type in tests
involving such contexts.

Also fixed context type detection logic so that forceCSP does not take
precedence over explicit context type provided.

Signed-off-by: Vui Lam <[email protected]>
@vuil vuil force-pushed the vuil/test-e2e-fixes branch from 7039b09 to cf4f650 Compare September 7, 2024 01:19
Copy link
Contributor

@anujc25 anujc25 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@marckhouzam
Copy link
Contributor

The change looks good however it is not just an E2E fix right? Could you update the title to reflect that?

IIUC there are now cases where the CLI can no longer automatically create a TMC context based on the endpoint alone and the user must explicitly specify the context type as TMC. Correct?

@vuil vuil changed the title Fix e2e tests for TMC context creation Fix context type detection logic and e2e tests for TMC context creation Sep 7, 2024
@vuil vuil merged commit 3191e65 into main Sep 7, 2024
9 checks passed
@vuil
Copy link
Contributor Author

vuil commented Sep 7, 2024

The change looks good however it is not just an E2E fix right? Could you update the title to reflect that?

IIUC there are now cases where the CLI can no longer automatically create a TMC context based on the endpoint alone and the user must explicitly specify the context type as TMC. Correct?

Thanks you are right, updated the title to match the description.

@marckhouzam marckhouzam added this to the v1.5.0 milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants