-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add e2e tests to verify mixer report and check for ingress #3513
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
Conversation
Hi @bianpengyuan. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/assign @douglas-reid |
/ok-to-test |
tests/e2e/tests/mixer/mixer_test.go
Outdated
} | ||
allowPrometheusSync() | ||
|
||
log.Info("Successfully sent request(s) to /productpage; checking metrics...") |
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.
instead of weaving together t.Log
and log.Info
statements, should we have consistency here of always using t.Log
?
/test e2e-suite-rbac-auth |
filled the unrelated failure issue #3600 |
tests/e2e/tests/mixer/mixer_test.go
Outdated
t.Logf("Baseline established: prior200s = %f", prior200s) | ||
t.Log("Visiting product page...") | ||
|
||
// visit production page as well as ingress. |
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.
nit: Visit product page through ingress.
@bianpengyuan Thanks for the PR.
|
@mandarjog Thanks for reviewing and sorry for the delay.
|
@@ -414,19 +425,25 @@ func TestNewMetrics(t *testing.T) { | |||
} | |||
|
|||
func TestDenials(t *testing.T) { | |||
testDenials(t, denialRule) |
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 add 2 top level tests func TestIngressDenial
and func TestDenial
.
This way there is better visibility about what exactly failed.
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.
Done.
tests/e2e/tests/mixer/mixer_test.go
Outdated
@@ -275,20 +285,21 @@ func TestGlobalCheckAndReport(t *testing.T) { | |||
t.Logf("Baseline established: prior200s = %f", prior200s) | |||
t.Log("Visiting product page...") | |||
|
|||
// visit production page. |
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.
nit: product page.
I think you have used production page
here and elsewhere.
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.
Done.
tests/e2e/tests/mixer/mixer_test.go
Outdated
// establish baseline | ||
t.Log("Establishing metrics baseline for test...") | ||
query := fmt.Sprintf("istio_request_count{%s=\"%s\"}", destLabel, fqdn("productpage")) | ||
checkMetricReport(t, promAPI, "productpage") |
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.
Similar to check Please add 2 top level tests for TestMetric
and TestIngressMetric
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.
Done.
Hey @bianpengyuan apart from my comments everything else looks good. |
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.
Looks good
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mandarjog The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
One last thing before merge, please update the PR title and description to reflect what it does now. |
/test all [submit-queue is verifying that this PR is safe to merge] |
@bianpengyuan: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue. |
Fix #3418
This test is duplicated from globalcheckandreport with ingress as destination in request count query.