cert-manager/test/integration/ctl
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
..
install_framework rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
migrate rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
testdata Adapt tests to new default behaviour of convert cmd 2020-08-28 15:45:36 +02:00
BUILD.bazel rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
ctl_convert_test.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
ctl_create_cr_test.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
ctl_install.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
ctl_renew_test.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
ctl_status_certificate_test.go Change handling of time in ctl integration tests 2022-02-10 15:29:51 +00:00