Commit Graph

139 Commits

Author SHA1 Message Date
Eric Van Norman 109d7a565c
Fix test.kube.postsubmit no longer needing to write snippets. (#7306)
Force merge because of netlify flake
2020-05-13 15:54:18 -04:00
Frank Budinsky 4f7622e3aa
More doc testing (#7253)
* Ingress control test

* Ingress control test

* fix lint

* fix package

* fix path

* improve _verify_like

* curl -s

* debug

* fix compare

* remove flaky verify call

* fix path

* regen
2020-05-12 05:58:07 -07:00
Frank Budinsky 80443a4b6c
Cleanup and fix TCP traffic routing test (#7265)
* Cleanup and fix TCP traffic routing test

* use ingress IP

* cleanup doc

* curl 20 times
2020-05-11 17:39:55 -07:00
Justin Pettit e77f3e8e2d
Add authz-tcp user guide test. (#7176)
Force merge because of netlify flake
2020-05-11 10:25:00 -04:00
Frank Budinsky affe99f97a
More traffic management task tests (#7250)
* More traffic management task tests

* lint errors

* fix kubectl output

* fix arg check

* login to bookinfo

* curl --user

* temporary kludge for login not working

* fault injection test

* rename test

* fix cleanup

* timeouts tests

* regen

* make sure sleep pods are gone
2020-05-10 15:05:22 -07:00
Frank Budinsky dcfdce05dc
Delete all snippet generating code from istioio test framework (#7239)
* Cleanup and remove all snippet generateing from istioio test framework

* fix lint

* one more lint

* remove dead code
2020-05-08 06:07:34 -07:00
Eric Van Norman 0c196ee512
Use template for sub testcases, fix TAG for them (#7237) 2020-05-07 17:37:29 -07:00
Frank Budinsky f45bc9e1a8
Remove obsolete '# ' uses from all tests (#7233) 2020-05-06 19:17:11 -04:00
Eric Van Norman 392a2bee14
Update test framework to use 1.6.0-beta.0 (#7214)
* Update test framework to use 1.6.0-beta.0

* Go back to copies from env var

* Add more test targets, fix mtls test (new PA added)

* Update to use Istio SHA from go.mod (convert to long SHA)

* Try and remove TAG from prow

* Debug TAG not being set

* Fix paralization issue

* Remove some extra output

* Review comments
2020-05-06 10:49:27 -07:00
Oliver Liu 1e73594260
Restructure the cert management tasks. (#7209)
* Restructure the cert management tasks.

* Small fix.

* Fix references.

* Fix links

* Small fix.

* Update content/en/docs/tasks/security/cert-management/plugin-ca-cert/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Small fix.

* Change the weights.

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-05-04 14:57:29 -04:00
Frank Budinsky 1fe7056ffa
Partial convert mirror test to new model (#7153)
Reverted the actual mirror test script, because mirror test seems to have some subtle failure when running with what seems to be the exact same commands via snips. Will investigate further in followup PR. Merging this one to get the generator changes.
2020-04-25 12:34:24 -04:00
lei-tang 2dbb4dc02d
Fix for running user guide tests (#7136) 2020-04-23 07:31:31 -07:00
Frank Budinsky a7107678f5
Convert TCP traffic shifting test (#7131)
* Convert TCP traffic shifting test

* lint errors

* regen

* test disable spellcheck

* temporary disable gen-check

* disable inappropriate bash lint errors

* disable gen check

* one more regen

* reenable gen check

* remove -it options

* revert commands

* fix app health check outdated
2020-04-22 18:26:27 -07:00
Frank Budinsky a9541a2b42
Convert bookinfo test to new model (#7127)
* Convert bookinfo test to new model

* missing include

* Fix kubectl output

* fix elapsed time regex
2020-04-22 11:36:01 -07:00
Frank Budinsky 99d4febb16
Convert health check test to new model (#7126)
* Convert health check test to new model

* fix cleanup
2020-04-22 11:18:58 -07:00
Shamsher Ansari 290ff5fa8e
Add test for Request Timeouts (#6660)
* Add test for Request Timeouts

* Update test to extract snippets

* Apply suggestions from code review

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Fix lint error

* Use code snippets from bookinfo snips

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Remove sleep pods

* remove deprecated $snippet and use use verify func

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Skip test failure

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-04-22 10:10:28 -04:00
Eric Van Norman a8b9bd10ce
Notes on testing (#7115)
* Notes on testing

* Update tests/README.md

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-04-21 08:20:51 -07:00
lei-tang f8fd68c04b
User guide tests for DNS certificate management (#7103)
* User guide tests for DNS certificate management

- Add user guide tests for DNS certificate management
- Remove user guide's dependency on jq

* Use _verify_contains function
2020-04-21 07:32:39 -07:00
Frank Budinsky 1e7a781bdf
Add built-in verify functions to test framework (#7110)
* Add builtin verify functions to test framework

* fix lint

* tweaks

* fix bold
2020-04-20 13:29:46 -07:00
Frank Budinsky ccd4ce6faa
Document check for lint errors in generated snip.sh files (#7100)
* Document source of user confusion

* tweak
2020-04-17 11:17:20 -07:00
lei-tang 96073364ea
User guide tests and remove manual steps for plugging in CA cert (#7085)
* User guide tests and remove manual steps for plugging in CA cert

- Add user guide tests for plugging in CA cert
- Remove the manual steps in the user guide of plugging in CA cert
to make it easier for an user to try the guide.

* Fix SC2046 lint error and the trafficmanagement test errors
2020-04-17 09:16:56 -07:00
Frank Budinsky 82d4851806
Snip regen (#7084)
* Add gen-check rule

* make gen->site

* tweak

* more readme clarification
2020-04-16 08:28:58 -07:00
Frank Budinsky f2cf780bfb
Update doc test README (#7080)
* Update doc test README

* add sh

* tweaks

* formatting

* format

* fix comment

* wording

* convert mtls migration task

* Update tests/README.md

Co-Authored-By: Eric Van Norman <ericvn@us.ibm.com>

* Update tests/README.md

Co-Authored-By: Eric Van Norman <ericvn@us.ibm.com>

Co-authored-by: Eric Van Norman <ericvn@us.ibm.com>
2020-04-15 08:44:18 -07:00
Frank Budinsky 3b59501872
Generate test snippets from md files POC (#7044)
* Generate test snippets from md POC

* fixes

* fix python lint

* fix snip source

* improvements

* update snip calls

* add copyright header

* lint errors

* lint error in md instructions

* better default snip_id

* run test without snippet gen

* gofmt

* fixes

* fix path

* fixes

* fix verify
2020-04-14 07:13:44 -07:00
Brad Ison 2fc4bb4a45
Fix flaky circuit breaker test (#7043)
The `TestCircuitBreaker` test is very flaky.  It relies on examining
the percentage of requests that succeed or fail to a service with
circuit breaking configured, and ensuring the numbers fall within a
given range.  Unfortunately, the percentages tend to vary widely from
run to run, so the test fails as often as it passes.

This simplifies the test by only verifying that both successes and
failures occur instead of checking the percentage of each.
2020-04-14 06:40:17 -07:00
Brad Ison 84135ce5b3
Run examples tests under the demo profile (#7046)
Most of the tasks in the docs assume the installation is using the
demo profile, but the tests install Istio with the default profile.
At least one instance of an issue caused by this can be found in
istio/istio#21556.  This changes the example tests to run against an
installation using the demo profile.

Fixes: https://github.com/istio/istio/issues/21634
2020-04-13 07:00:19 -07:00
Brad Ison a96df3ee36
Fix mTLS migration test script (#7010)
The mTLS migration task in the docs was updated to use
PeerAuthentication instead of Policy and DestinationRules, but the
tests were never updated.  This updates the test script to be inline
with the docs.
2020-04-02 07:00:21 -07:00
Brad Ison ccf3e134d9
Fix TCP Traffic Shifting test script (#7016)
The `TestTCPTrafficShifting` test script relies on fetching the port
named "tcp" on the istio-ingressgateway service, but that port is not
present in the default installation profile -- only in the demo
profile.  This patches the service to add the port in the setup
script, and also fixes the usage of `nc` in the test script.
2020-04-01 13:44:03 -07:00
Suchith J N c2dc99c1c3
(#6837) remove istio.io test for enabling/disabling policy enforcement (#6838) 2020-03-24 06:40:13 -07:00
Nathan Mittler 404cbd180d
Update to the latest istio/istio (#6881)
There were changes to the test framework that required a few tweaks.
2020-03-16 10:08:02 -04:00
Suchith J N 798328b911
(#6586) move istio.io test for circuit breaking to istio.io repository (#6609)
* (#6586) move istio.io test for circuit breaking to istio.io repository

* (#6586) add verification for output metrics

* (#6586) widened bounds for both before and after tripping and use ruby for evaluation

* (#6586) fix istioio package import
2020-03-12 09:05:43 -07:00
Istio Automation c71ba46ef4
Updating istio/istio dependency (#6724) 2020-03-05 07:24:16 -08:00
Daniel Grimm b1a3e86a7b
Add ingress-gateway reachability to bookinfo test (#6627) 2020-02-28 15:36:32 -08:00
Shamsher Ansari a72730d3de
Add test for Enabling Policy Enforcement (#6622) 2020-02-27 09:52:05 -08:00
Nathan Mittler a804d49342
More fixes and cleanup for makefiles (#6612) 2020-02-26 14:55:25 -08:00
Nathan Mittler 10821e3a17
Fixes and cleanup for running tests (#6598) 2020-02-25 14:28:01 -08:00
Nathan Mittler a7c0724624
Copy istio.io test framework from istio/istio (#6521) 2020-02-20 10:55:35 -08:00
Nathan Mittler e97c81b700
Fix istio.io integration tests (#6489) 2020-02-20 09:28:42 -08:00
Nathan Mittler 6a4372e36d
Copy istio.io tests to istio.io repo (#6451)
Once this lands, we will work on getting them on CI
2020-02-14 14:20:10 -08:00