Add Mixer integration tests#207
Add Mixer integration tests#207douglas-reid merged 9 commits intoistio:masterfrom douglas-reid:mixerTests
Conversation
tests/e2e/framework/istioctl.go
Outdated
There was a problem hiding this comment.
--istioNamespace %s is needed to specify namespace of istio system components (see CreateRule above for example).
tests/e2e/tests/mixer/mixer_test.go
Outdated
There was a problem hiding this comment.
Liens 123-130 shouldn't be needed anymore with #205.
There was a problem hiding this comment.
These should now be removed.
|
Thanks for the review! I've updated to match comments (and upgrade istioctl). PTAL. |
tests/e2e/tests/mixer/mixer_test.go
Outdated
There was a problem hiding this comment.
perhaps use ori or rename ori-- > []byte content
There was a problem hiding this comment.
section removed.
tests/e2e/tests/mixer/mixer_test.go
Outdated
There was a problem hiding this comment.
not this PR directly, but if we are going to use kubectl, so often we need a util.kubectl
@sebastienvas, or use real kubeapi
tests/e2e/tests/mixer/mixer_test.go
Outdated
There was a problem hiding this comment.
If you are not modifying the rules, you can just use the original file.
There was a problem hiding this comment.
true. this code copies to t.rulesDir, which makes it easier to reference tc.rulesDir later in the create rules blocks. i'll update the code to make that clearer.
There was a problem hiding this comment.
updated to just use os.Link() instead of copying the files around.
istio.VERSION
Outdated
There was a problem hiding this comment.
This is not a commit in master
There was a problem hiding this comment.
OK. We need a new ISTIOCTL_URL with the latest fix. I just found one that worked. Do you know what the latest in master is?
There was a problem hiding this comment.
621b2c4c8073dd4e570c2c77f3d6f92f7ba969b2 is the latest commit in istio.io/manager master.
There was a problem hiding this comment.
I d rather use a stable tag here. Does stable-c1b35b6 work ?
There was a problem hiding this comment.
updated to SHA suggested.
|
PTAL. Attempted to address previous comments. Changes include:
Tested on minikube: passed. |
|
You need to fix the linters issue first tough |
|
You can use stable-621b2c4 tag now instead of the SHA. |
|
PTAL. Updated:
|
This PR establishes a baseline set of integration tests that exercise some core Mixer features, including: - basic monitoring - denials aspect - rate limiting - adding new telemetry via API There is a lot of room for improvement, but this should establish a decent baseline for verification of behavior. Other apsects, such as whitelisting, will need to be added when support for adding descriptors via API, etc., is supported. Tested with `--use_local_cluster` flag on MPB with minikube.
This PR establishes a baseline set of integration tests that exercise some core Mixer features, including: - basic monitoring - denials aspect - rate limiting - adding new telemetry via API There is a lot of room for improvement, but this should establish a decent baseline for verification of behavior. Other apsects, such as whitelisting, will need to be added when support for adding descriptors via API, etc., is supported. Tested with `--use_local_cluster` flag on MPB with minikube.
|
Jenkins job istio/presubmit passed |
…ation (istio#207) * Rename demos to samples * Use paths relative to the root * Use paths relative to the root * Use relative paths * Put back istioctl instr
* Only run linters on the changed code, except for main build * use vendored linters * break coverage and race as 2 test, runs faster Former-commit-id: ce9efb2dfee2212085d7c1a3f23d99ecb992bb56
This PR establishes a baseline set of integration tests that exercise some core Mixer features, including: - basic monitoring - denials aspect - rate limiting - adding new telemetry via API There is a lot of room for improvement, but this should establish a decent baseline for verification of behavior. Other apsects, such as whitelisting, will need to be added when support for adding descriptors via API, etc., is supported. Former-commit-id: 60ae078
* Only run linters on the changed code, except for main build * use vendored linters * break coverage and race as 2 test, runs faster Former-commit-id: 34169c89106ff26ee56dc4a519467cecf4d5905b
* Add gcp node agent * address comments * address comments * remove unused var
This PR establishes a baseline set of integration tests that exercise some core Mixer features, including: - basic monitoring - denials aspect - rate limiting - adding new telemetry via API There is a lot of room for improvement, but this should establish a decent baseline for verification of behavior. Other apsects, such as whitelisting, will need to be added when support for adding descriptors via API, etc., is supported. Former-commit-id: 60ae078
* Add gcp node agent * address comments * address comments * remove unused var
* initial commit * templatize istio-telemetry * add standard labels * update telemetry config namespace * add stackdriver adapter config * rename per comments
Enable MacOS based container builds. Depends-On: istio/common-files#30 Depends-On: istio/tools#274
…io#236) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com>
It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157)
…io#236) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com>
…io#236) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com>
…io#236) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com>
…ers (istio#236) (istio#544) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com> Co-authored-by: Brian Avery <bavery@redhat.com> Co-authored-by: Brad Ison <brad.ison@redhat.com>
…ers (istio#236) (istio#544) (istio#712) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com> Co-authored-by: Brian Avery <bavery@redhat.com> Co-authored-by: Brad Ison <brad.ison@redhat.com> Co-authored-by: Jacek Ewertowski <jewertow@redhat.com> Co-authored-by: Brian Avery <bavery@redhat.com> Co-authored-by: Brad Ison <brad.ison@redhat.com>
…io#236) (istio#544) (istio#712) Rework of this for 1.6 rebase. Adapted from: b0f47f2 MAISTRA-2010 Fix validation of AuthorizationPolicy fields (istio#207) It would previously detect request.regex.headers as invalid, even though it is supported. Cherry-pick of MAISTRA-1739 (istio#157) Co-authored-by: Brad Ison <brad.ison@redhat.com> Co-authored-by: Brian Avery <bavery@redhat.com> Co-authored-by: Brad Ison <brad.ison@redhat.com> Co-authored-by: Jacek Ewertowski <jewertow@redhat.com> Co-authored-by: Brian Avery <bavery@redhat.com> Co-authored-by: Brad Ison <brad.ison@redhat.com>
This PR establishes a baseline set of integration tests that exercise
some core Mixer features, including:
There is a lot of room for improvement, but this should establish a
decent baseline for verification of behavior. Other apsects, such
as whitelisting, will need to be added when support for adding
descriptors via API, etc., is supported.
Tested with
--use_local_clusterflag on MPB with minikube.