95 Commits
Author SHA1 Message Date
James Munnelly 35a96362a7 Rename command to 'migrate-api-version'
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:21:47 +00:00
James Munnelly 1ae8fedc2d Add additional test cases
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:08:15 +00:00
James Munnelly b7b1baf565 Fix call to NewTestLogger after logr upgrade
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:57 +00:00
James Munnelly eaa95ebf9e Add integration test for 'upgrade migrate' command
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
Michele Caci ac4bf927c2 Remove t.Fatal from goroutine
Signed-off-by: Michele Caci <michele.caci@amadeus.com>
2021-10-19 12:53:46 +02:00
joshvanl 4cdbb64003 Update ctl integration tests to use new local factory package
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:37:01 +01:00
Eng Zer Jun 54e70d2cc4 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-08-23 19:50:42 +08:00
Inteon 91ec4c773a use correct contexts everywhere & don't restart apiserver to add crds
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-08-12 20:05:01 +02:00
Inteon e5df60d47e don't wait for hooks in kubectl cert-manager x install test & use local chart for tests
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-08-11 23:18:33 +02:00
Inteon 0ed0135930 Improvements based on reviewer's feedback
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-23 15:29:43 +02:00
Inteon 611bac67cf Add basic test cases
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-08 16:28:38 +02:00
joshvanl b3cab7e265 Updates the CRDs with the Certificate Condition observedGeneration field
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-04 17:04:11 +00:00
irbekrm 1abc7107ca Passes a single context with cancel func to all the kubectl plugin commands
Signed-off-by: irbekrm <irbekrm@gmail.com>

Don't duplicate the existing ContextWithStopCh function

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-01-27 13:06:34 +00:00
Maartje Eyskens ab0cd57dc5 Use The cert-manager Authors.
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-11 19:04:13 +01:00
Maartje Eyskens 1788a9d758 Update copyright to cert-manager project
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-08 19:04:49 +01:00
Haoxiang Zhou f66da132fa Adapt tests to new default behaviour of convert cmd
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-28 15:45:36 +02:00
Haoxiang Zhou 46ab9178ed Change order of adding versions to scheme to change priority
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-28 15:44:53 +02:00
jetstack-botandGitHub 57034dc1e4 Merge pull request #3213 from hzhou97/add_more_events_output
Ctl command status certificate: Add Events of Issuer and Secret to output
2020-08-27 16:04:36 +01:00
Maartje Eyskens e0749ad822 Implement feedback
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-27 13:02:18 +02:00
Haoxiang Zhou 5f423a442e Create Events for integration and unit tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 16:28:28 +02:00
Haoxiang Zhou a1ce1cefb5 Add Events of Issuer and Secret to output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 15:31:53 +02:00
Maartje Eyskens 37fac6f6d8 Remove unused constants
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:38:48 +02:00
Maartje Eyskens 0f6bc5eb68 Move NS creation to individual tests
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:18:26 +02:00
Maartje Eyskens 14ea7c3f65 Update k8s toolchain to 0.19.0-rc.3
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:15:54 +02:00
JoshVanL d3e27905eb Remove bad error text output
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:48:21 +01:00
JoshVanL 096962e204 Adds integration tests for ctl convert over a list
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:41:49 +01:00
JoshVanL 55566c2e01 Move all input and output ctl convert integration test data into file
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:23:32 +01:00
Richard Wall 3fb3db27ff Fix ACME challenge type in unit tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall b638954b03 Fix ./cmd/ctl and tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall 81eb53f597 ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall a70298180a Run a script to update v1alpha2 usage to v1
Script is available at https://github.com/jetstack/cert-manager/pull/3201

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:26:51 +01:00
Haoxiang Zhou 6c26e0d821 Add Challenge output and update tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-17 16:15:28 +02:00
Maartje Eyskens 5049c1a4ab Improve integration tests with OpenAPI + webhook validation
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-13 15:01:50 +02:00
Haoxiang Zhou 43a83e71d7 Use line anchors for exact regex matching instead of string comparison
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 16:37:18 +01:00
Haoxiang Zhou 196959a05f No output about Orders if non-ACME Issuer
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 14:37:54 +01:00
Haoxiang Zhou fc8b123593 Update tests and compare strings directly as well if regex matches
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 12:03:36 +01:00
Haoxiang Zhou 6afc1d6cfa Change status cert to use structs
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-03 11:19:13 +01:00
Haoxiang Zhou 11b6d91722 Use go-diff to report error
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-30 18:04:08 +01:00
Haoxiang Zhou ef95d15642 Updated tests with output for secret
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-30 17:54:57 +01:00
jetstack-botandGitHub ec6d2bb3e5 Merge pull request #3120 from hzhou97/add_issuer_output
Ctl status certificate command: Add issuer output and creation time
2020-07-29 12:13:20 +01:00
jetstack-botandGitHub 8434c6a941 Merge pull request #3094 from hzhou97/create_cr_new_test
Create cr command: change and add integration tests
2020-07-27 15:56:14 +01:00
Haoxiang Zhou 0d449ea76d Add tests for non-existing issuer; Review implementation
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-27 14:20:49 +01:00
Haoxiang Zhou 3b6b725c5d Added Certificate creation time to output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-24 16:03:29 +01:00
Haoxiang Zhou c4f7e27413 Add Issuer/ClusterIssuer output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-24 15:32:34 +01:00
Haoxiang Zhou d65e95eaeb Refactor TestCtlCreateCRBehaviourBeforeAnythingIsCreated to unit tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 16:51:48 +01:00
Haoxiang Zhou 8525a26bd2 Format the Events output with tabwriter
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 12:31:37 +01:00
Haoxiang Zhou f95251a5da Output Events of CR as well
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 09:45:17 +01:00
Haoxiang Zhou 20c5e2696b Output the Events of Certificate
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 09:45:17 +01:00
Haoxiang Zhou f061f15e93 Review implementations
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-21 15:57:02 +01:00
Haoxiang Zhou 2ae27cb86f Move check of Validate function to from integration to unit tests, minor clean-up
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-17 17:48:02 +01:00