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

Create test for ingress for custom default backend. #145

Closed

Conversation

sawsa307
Copy link
Contributor

@sawsa307 sawsa307 commented Aug 5, 2023

Create test for ingress for custom default backend.

@sawsa307 sawsa307 force-pushed the test-ing-custom-default-be branch 8 times, most recently from 5d5e174 to d56a07d Compare August 8, 2023 22:12
@sawsa307 sawsa307 force-pushed the test-ing-custom-default-be branch 10 times, most recently from c37101b to e3ef669 Compare August 29, 2023 19:46
Add setup for network and subnet, and make sure the cluster is created
in the given network and subnet.
Add test/cleanup.sh to cleanup resouces. It uses the same value for env
in test.
@bowei
Copy link
Member

bowei commented Aug 30, 2023

I thought the purpose of the code is to test the YAMLs checked in, not to write more e2e tests?

@sawsa307
Copy link
Contributor Author

sawsa307 commented Aug 30, 2023

I thought the purpose of the code is to test the YAMLs checked in, not to write more e2e tests?

Do you mean we only want to check if the yaml files are syntactically correct? We don't need to create and validate the resources created by yaml?

@sawsa307 sawsa307 closed this Aug 30, 2023
@sawsa307 sawsa307 reopened this Aug 30, 2023
@sawsa307
Copy link
Contributor Author

I thought the purpose of the code is to test the YAMLs checked in, not to write more e2e tests?

Yes it is getting into a more e2e test format, but we might fail to check many cases if we only check the yaml creates the corresponding objects, so validating traffic would be more a comprehensive check.

boredabdel
boredabdel previously approved these changes Aug 31, 2023
Copy link
Member

@boredabdel boredabdel left a comment

Choose a reason for hiding this comment

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

LGTM

@boredabdel boredabdel dismissed their stale review August 31, 2023 14:30

reverting this PR

@boredabdel boredabdel closed this Aug 31, 2023
@sawsa307 sawsa307 deleted the test-ing-custom-default-be branch September 22, 2023 16:37
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.

3 participants