-
Notifications
You must be signed in to change notification settings - Fork 405
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
Add the path-related test case to the App Gateway test suite #14762
Conversation
Needs some chart cleanup. Test job will fail because it doesn't wait for test app to deploy.
Not yet finished!
Problem was caused by Istio
in Dockerfile
Https can't be used due to a bug in gateway
There is some regression in features and tests don't pass
Now makefile waits for pod to run, then displays logs and exits when tests are completed
This reverts commit 8ed62f3.
Skipping CI for Draft Pull Request. |
✅ 🥰 Documentation preview ready! 🥰
To edit notification comments on pull requests, go to your Netlify site settings. |
} | ||
var actualCode, expectedCode int | ||
|
||
switch service.Name { |
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.
The switch-case statement is redundant as the code for each case is identical.
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
func (gs *GatewaySuite) TestPath() { |
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.
Actually we don't need that code at all. Please, notice the following:
- The test cases description is contained within Application CRD
- The expected response code is contained within Application CRD
- Test cases checking positive authorisation are similar to path related ones in that sense that the Go code executing it is identical.
So there are two possibilities:
- Have one Application CRD with test cases for positive authorisation and path related cases
- Have a set of Go functions and a set of Application CRDs and combine them. We need the following code:
- Executing Get request and checking response code
- Executing Post request with body, additional query parameters and headers
- ...
Description
Changes proposed in this pull request:
Related issue(s)
See the issue here - #14654