-
Notifications
You must be signed in to change notification settings - Fork 327
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
feat(kuma-cp) e2e stabilization #939
Conversation
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
_, stderr, err := c1.ExecWithRetries(TestNamespace, clientPod.GetName(), "demo-client", | ||
"curl", "-v", "-m", "3", "echo-server") | ||
return stderr, err | ||
}, "10s", "1s").Should(ContainSubstring("HTTP/1.1 200 OK")) |
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.
shall we use the default for the timeouts/
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.
Can we retry if not 200 OK returned?
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.
Eventually
+ ExecWithRetries
Can we have single code for retries?
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.
Can we retry if not 200 OK returned?
@nickolaev I'm sorry, not sure that I'm following here. It will retry until a response contains HTTP/1.1 200 OK
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.
@jakubdyszkiewicz I believe ExecWithRetries
should be named just Exec
. These retries are needed to exec command with status code equals 0. And eventually
is needed to check that response itself is correct
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.
Oh actually it is OK. Please ignore.
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.
I am tempted to have "CurlWithRetries" :)
e2e passes - merging this one. |
Signed-off-by: Ilya Lobkov ilya.lobkov@konghq.com
Summary
Policies might take some short period of time to be applied and propagated to Envoy. That's why all
curl
checks have to be done usingEventually