The WFE test relies on a pre-generated cert. Since there are some sanity checks on the dates in certs, we were getting errors during the test. One quick fix is to have those sanity checks rely on RA's clock object, which can be replaced with a fake for testing. In order to do that, I had to move the sanity check (MatchesCSR) into the registration authority package, where it makes more sense anyhow. I also removed a handful of equality testing functions in objects.go that were only used by MatchesCSR and whose purpose is better served by reflect.DeepEqual. This was to avoid having to also move those equality testing functions into the registration authority. |
||
|---|---|---|
| .. | ||
| main.go | ||
| main_test.go | ||