Add e2e tests to verify mixer report and check for ingress#3513
Add e2e tests to verify mixer report and check for ingress#3513istio-merge-robot merged 7 commits intoistio:masterfrom
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. DetailsInstructions 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.
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.
nit: Visit product page through ingress.
|
@bianpengyuan Thanks for the PR.
|
|
@mandarjog Thanks for reviewing and sorry for the delay.
|
| } | ||
|
|
||
| func TestDenials(t *testing.T) { | ||
| testDenials(t, denialRule) |
There was a problem hiding this comment.
Please add 2 top level tests func TestIngressDenial and func TestDenial.
This way there is better visibility about what exactly failed.
tests/e2e/tests/mixer/mixer_test.go
Outdated
| t.Logf("Baseline established: prior200s = %f", prior200s) | ||
| t.Log("Visiting product page...") | ||
|
|
||
| // visit production page. |
There was a problem hiding this comment.
nit: product page.
I think you have used production page here and elsewhere.
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.
Similar to check Please add 2 top level tests for TestMetric and TestIngressMetric
|
Hey @bianpengyuan apart from my comments everything else 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. DetailsNeeds 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
DetailsInstructions 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.