Commit Graph
104 Commits
Author SHA1 Message Date
James Munnelly 5bd0a37686 Update Deployment manifests to use apps/v1
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-22 13:40:13 +01:00
jetstack-botandGitHub 458c7193d4 Merge pull request #1861 from munnerz/e2e-logging
Fix fetching logs in e2e test framework
2019-07-08 14:11:46 +01:00
James Munnelly 20e6a08a87 Fix fetching logs in e2e test framework
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-08 12:52:07 +01:00
JoshVanL f9417da5c5 Fixes and adds tests to utils/Equal.. funcs
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-07-04 15:21:00 +01:00
JoshVanL 22ba831acb Fixed some e2e test condition logic
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-07-04 13:19:14 +01:00
JoshVanL 98d5725eea WIP, add CertificateRequest e2e tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-07-03 15:59:05 +01:00
jetstack-botandGitHub be95598d20 Merge pull request #1505 from DirectXMan12/feature/certs-in-conv-webhook
Add support for CRDs to the CA injector
2019-07-03 12:27:31 +01:00
James Munnelly de34f0410d Use binary image targets to avoid building multiple architectures all the time
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-07-02 17:29:32 +01:00
Solly Ross 8155ed71b5 Expand/generalize CA injector tests
This expands/generalizes the CA injector tests to all object types that
the CA injector supports.

Signed-off-by: Solly Ross <sollyross@google.com>
2019-06-19 16:09:31 -07:00
James Munnelly bfcac2b257 Fix loggableAddon interface in test framework
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-06-18 13:48:10 +01:00
jetstack-botandGitHub fe00f40a34 Merge pull request #1648 from munnerz/post-as-get
Add support for ACMEv2 POST-as-GET
2019-06-05 19:48:39 +01:00
jetstack-botandGitHub 1c10f34089 Merge pull request #1663 from munnerz/distroless
Switch to gcr.io/distroless/static base image
2019-06-05 11:48:39 +01:00
jetstack-botandGitHub 57e52689d5 Merge pull request #1683 from unicell/fix-license
Correct test/e2e/framework/cleanup.go license header
2019-05-24 02:22:32 +01:00
Michael Tsang 21eae84ce4 Add chart version to helm install when running tests
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
2019-05-22 14:40:12 +01:00
Qiu Yu f75bbd309a Correct test/e2e/framework/cleanup.go license header
The license header got overwritten as part of this commit 51195e4c

This change rolls it back with additional directive to skip license
check in favor of hack/verify_boilerplate.py

Signed-off-by: Qiu Yu <unicell@gmail.com>
2019-05-15 15:47:03 -07:00
James Munnelly fbf788d41f Switch to gcr.io/distroless/static base image
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-05-10 12:01:53 +01:00
James Munnelly f672720ce4 Add Pebble 'strict' mode support in e2e test suite
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-05-07 15:26:29 +01:00
James Munnelly d4e89431ad Add missing license header
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 15:39:12 +01:00
James Munnelly d46fbf72ce Fix issues with samplewebhook addon
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 15:39:12 +01:00
James Munnelly 75904ecd7a Fix typo in e2e test helm chart webhook
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 15:39:12 +01:00
James Munnelly ac61e7a9e4 Add example-webhook test DNS webhook solver addon
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 15:39:12 +01:00
James Munnelly 43966db52e Improve describe output when WaitCertificateIssuedValidTLS fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 12:36:18 +01:00
James Munnelly 3948175427 Fix e2e test addon deprovisioning order
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 12:36:18 +01:00
James Munnelly 41970407c6 Expose ginkgo.focus and skip-globals flags in e2e_test
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-30 12:36:18 +01:00
James Munnelly d282c5f2aa Run update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly 420ebfebe2 Use goflag instead of pflag for logs
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly 5d73076db9 Update logs package for go-logr
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:50 +00:00
James Munnelly 7a20d32ebd Add Venafi e2e suite
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-01 13:16:03 +00:00
jetstack-botandGitHub c07bfd7181 Merge pull request #1419 from DanielMorsing/enable_httpstest
Enable https redirect test
2019-02-28 15:05:11 +00:00
Daniel Morsing f4b132c8c6 enabled https redirect test
Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-28 12:25:03 +00:00
Daniel Morsing e1cee57b32 update dependencies for test
We use the latest pebble release without the strict mode flag enabled

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-28 12:24:24 +00:00
jetstack-botandGitHub ccd2dd8533 Merge pull request #1398 from DirectXMan12/feature/ca-controllers
Add a CA Injector Controller
2019-02-27 14:59:44 +00:00
Solly Ross 42248a91d7 CA Injector Controller
This implements a CA injector controller using controller-runtime.
It looks at admission webhooks and APIServices with a particular
annotation, and injects the CA data from certificates.

Signed-off-by: Solly Ross <sollyross@google.com>
2019-02-26 21:47:34 -08:00
Daniel Morsingandjetstack-bot 2d21983486 Implement test for HTTP->HTTPS redirects during ACME HTTP01 challenges (#1303)
* Add test for http->https redirects

This makes sure that when we're handling http->https redirects like
letsencrypt/boulder would for acme HTTP-01 validations

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* add initial TLS cert in hopes that this will make the TLS redirect work

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* make nginx-ingress not cheat on redirects

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* skip test until nginx-ingress is fixed

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* run bazel update

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* gofmt

Signed-off-by: Daniel Morsing <dmo@jetstack.io>

* reenable no-tls-redirects

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-25 15:01:19 +00:00
James Munnelly b9a0c51933 Don't return errors if retrieving pod logs fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-22 17:11:10 +00:00
James Munnelly 1f48f3d1d4 gofmt
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-19 11:25:56 +00:00
James Munnelly e20c3ffb82 Fix test/e2e/util for new pkg/api/util package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-19 11:25:56 +00:00
James Munnelly 18c6191b0b Create HaveCondition gomega matcher and use it in e2e test
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-08 13:40:07 +00:00
James Munnelly f9a228c86e Use new kubectl var everywhere
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-31 23:00:44 +00:00
James Munnelly b16484e95d Wait for Certificate to become not-ready before waiting to become ready
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-31 22:25:46 +00:00
James Munnelly 31eeb5fe2a Refactor WaitCertificateValidTLS and run kubectl describe on test failure
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-31 22:25:46 +00:00
Zadkiel Aharonian 9fe05cc3d2 Fix references for chart path
Signed-off-by: Zadkiel Aharonian <hello@zadkiel.fr>
2019-01-17 18:56:47 +01:00
Daniel Morsing f428e0b848 only init globals data once
This fixes the issue of global addons not being cleaned up after tests

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-01-14 15:48:16 +00:00
James Munnelly ec87b60c94 Use Bazel images for nginx-ingress, vault and tiller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-11 14:03:22 +00:00
jetstack-botandGitHub d8b7c734bc Merge pull request #1110 from munnerz/helm-ginkgo-writer
Use GinkgoWriter to print Helm install output
2019-01-08 19:12:30 +00:00
James Munnelly 8533a5b91c Use log.Logf instead of GinkgoWriter
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-08 14:55:27 +00:00
James Munnelly 016ae6077f Print test namespace name at the start of all test specs
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 22:16:33 +00:00
James Munnelly 2d55a8fa26 Use framework/log instead of glog
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 22:14:04 +00:00
James Munnelly 0237d5a4c2 Write log files to artifacts directory instead of stdout
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 20:45:44 +00:00
James Munnelly 0fcc0c666c Update copyright header year
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 15:07:55 +00:00