Skip to content

Add Mixer integration tests#207

Merged
douglas-reid merged 9 commits intoistio:masterfrom
douglas-reid:mixerTests
May 10, 2017
Merged

Add Mixer integration tests#207
douglas-reid merged 9 commits intoistio:masterfrom
douglas-reid:mixerTests

Conversation

@douglas-reid
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--istioNamespace %s is needed to specify namespace of istio system components (see CreateRule above for example).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liens 123-130 shouldn't be needed anymore with #205.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should now be removed.

@douglas-reid
Copy link
Copy Markdown
Contributor Author

Thanks for the review! I've updated to match comments (and upgrade istioctl).

PTAL.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps use ori or rename ori-- > []byte content

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

section removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not this PR directly, but if we are going to use kubectl, so often we need a util.kubectl
@sebastienvas, or use real kubeapi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are not modifying the rules, you can just use the original file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to just use os.Link() instead of copying the files around.

Copy link
Copy Markdown
Contributor

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

istio.VERSION Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a commit in master

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

621b2c4c8073dd4e570c2c77f3d6f92f7ba969b2 is the latest commit in istio.io/manager master.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I d rather use a stable tag here. Does stable-c1b35b6 work ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to SHA suggested.

@douglas-reid
Copy link
Copy Markdown
Contributor Author

PTAL. Attempted to address previous comments. Changes include:

  • updated SHA for istio.VERSION
  • switch to os.Link for getting rules file into tc.rulesDir

Tested on minikube: passed.

@sebastienvas
Copy link
Copy Markdown
Contributor

You need to fix the linters issue first tough

Copy link
Copy Markdown
Contributor

@ayj ayj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

istioctl changes LGTM

@sebastienvas
Copy link
Copy Markdown
Contributor

You can use stable-621b2c4 tag now instead of the SHA.

@douglas-reid
Copy link
Copy Markdown
Contributor Author

PTAL. Updated:

  • fix linter warnings
  • istioctl moved to stable tag

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.
@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job istio/presubmit passed

@douglas-reid douglas-reid merged commit 60ae078 into istio:master May 10, 2017
zenlint pushed a commit to zenlint/istio that referenced this pull request Aug 30, 2017
…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
mandarjog added a commit to mandarjog/istio that referenced this pull request Oct 30, 2017
* 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
rshriram pushed a commit that referenced this pull request Oct 30, 2017
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
mandarjog added a commit that referenced this pull request Oct 31, 2017
* 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
mandarjog pushed a commit that referenced this pull request Oct 31, 2017
* Add gcp node agent

* address comments

* address comments

* remove unused var
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
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
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
* Add gcp node agent

* address comments

* address comments

* remove unused var
guptasu pushed a commit to guptasu/istio that referenced this pull request Jun 11, 2018
kyessenov pushed a commit to kyessenov/istio that referenced this pull request Aug 13, 2018
rajusharma pushed a commit to rajusharma/istio that referenced this pull request Jul 2, 2019
* initial commit

* templatize istio-telemetry

* add standard labels

* update telemetry config namespace

* add stackdriver adapter config

* rename per comments
howardjohn pushed a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
Enable MacOS based container builds.

Depends-On: istio/common-files#30
Depends-On: istio/tools#274
brian-avery added a commit to brian-avery/istio that referenced this pull request Feb 12, 2021
…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>
markusthoemmes pushed a commit to markusthoemmes/istio that referenced this pull request Apr 27, 2021
It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (istio#157)
luksa pushed a commit to luksa/istio that referenced this pull request Jun 30, 2021
…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>
luksa pushed a commit to luksa/istio that referenced this pull request Feb 22, 2022
…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>
luksa pushed a commit to luksa/istio that referenced this pull request Apr 29, 2022
…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>
luksa pushed a commit to luksa/istio that referenced this pull request Sep 15, 2022
…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>
luksa pushed a commit to luksa/istio that referenced this pull request Apr 11, 2024
…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>
dgn pushed a commit to dgn/istio that referenced this pull request Jun 13, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants