-
Notifications
You must be signed in to change notification settings - Fork 366
chore: add test cases for external service #2500
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
chore: add test cases for external service #2500
Conversation
| externalNodes: | ||
| - type: Domain | ||
| name: httpbin.org | ||
| - type: Domain | ||
| name: postman-echo.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two services are actually not very stable. We can consider whether to replace them in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to it and try to use local services instead of external services as they are always unstable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this particular test is for testing external domains other than kubernetes service.
ronething
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
others lgtm.
| assert.True(GinkgoT(), hasEtag && hasNoEtag, "both httpbin and postman should be accessed at least once") | ||
| }) | ||
|
|
||
| It("should be able to use backends and upstreams together", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/apache/apisix-ingress-controller/blob/master/test/e2e/crds/v2/route.go#L516-L545
They are very similar, I suggest integrating them into one context to avoid redundant use cases.
What this PR does / why we need it:
Pre-submission checklist: