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> |
||
|---|---|---|
| .. | ||
| install_framework | ||
| migrate | ||
| testdata | ||
| BUILD.bazel | ||
| ctl_convert_test.go | ||
| ctl_create_cr_test.go | ||
| ctl_install.go | ||
| ctl_renew_test.go | ||
| ctl_status_certificate_test.go | ||