Tim Ramlot
2ba39e9ebc
allow importing the ctl cmd package
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-12 14:13:04 +02:00
Tim Ramlot
e08a13496d
replace deprecated wait.PollUntil() and wait.Poll()
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-09 17:47:53 +02:00
Tim Ramlot
d656b2d9da
replace deprecated PollImmediateUntil with PollUntilContextCancel
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-07 10:15:46 +02:00
irbekrm
206b6def1e
Make external DNS webhook tests importable again
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-04 12:40:06 +01:00
Ashley Davis
6ce6ae839e
separate binaries/tests into separate modules with minimal dependencies
...
also add gomod validation in CI, along with a cmrel version bump
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-04-05 10:30:39 +01:00
Maël Valais
9078730129
migrate tests: higher timeout to lower the number of false-positives
...
Signed-off-by: Maël Valais <mael@vls.dev>
2023-04-04 11:13:56 +02:00
Tim Ramlot
b999749854
improve gen.CSR and use it everywhere
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-11-10 09:21:31 +01:00
Ashley Davis
fb231ab641
Remove bazel 🎉
...
This removes all .bazel and .bzl files, and a bunch of scripts relating
to bazel, now that it's been entirely replaced.
There are still a few places where traces could be removed, but this
removes the brunt of the bazel stuff that remains.
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-26 11:38:50 +01:00
Ashley Davis
6420aa4bfa
fix imports in a few files
...
this is according to our policy on organizing imports, see:
https://cert-manager.io/docs/contributing/coding-conventions/#organizing-imports
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-18 17:42:45 +00:00
Ashley Davis
fc4f130755
Change handling of time in ctl integration tests
...
Two main changes:
1. Timezones
Because the tests were run in bazel or in CI environments, they always
ran in UTC, but the behaviour of ctl is based on local time, not UTC. We
show "not after" in the local timezone.
Now, we parse the "not after" time from the output so that its timezone
is respected and should pass on any developer laptop even outside of
bazel.
2. Created At
There was previously a pretty big regex for checking that "Created at"
was a valid timestamp. Now, we simply parse the timestamp using the Go
standard library to confirm that it's a valid RFC3339 timestamp.
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-10 15:29:51 +00:00
Ashley Davis
3a055cc2f5
rename all uses of github.com/jetstack/cert-manager
...
This was done by running the following command twice:
```bash
grep -Ri "github.com/jetstack/cert-manager" . | \
cut -d":" -f1 | \
sort | \
uniq | \
xargs sed -i
"s/github.com\/jetstack\/cert-manager/github.com\/cert-manager\/cert-manager/"
```
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-02 09:08:31 +00:00
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-bot
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