Add replay to remaining (non-trivial) flow tests (#1020)

* Add replay to remaining (non-trivial) flow tests

Convert all remaining flow tests to do replay/compare testing.  In the course
of this:
- Move the class specific SetClock extension into its own place.
- Fix another "cyclic" foreign key (there may be another solution in this case
  because HostHistory is actually different from HistoryEntry, but that would
  require changing the way we establish priority since HostHistory is not
  distinguished from HistoryEntry in the current methodology)
This commit is contained in:
Michael Muller
2021-03-19 13:20:53 -04:00
committed by GitHub
parent 89fe53e339
commit de09994b36
18 changed files with 178 additions and 75 deletions
@@ -0,0 +1,25 @@
-- Copyright 2021 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
ALTER TABLE "HostHistory" DROP CONSTRAINT fk3d09knnmxrt6iniwnp8j2ykga;
ALTER TABLE "HostHistory" DROP CONSTRAINT fk_hosthistory_host;
ALTER TABLE "HostHistory" ADD CONSTRAINT fk_history_registrar_id
FOREIGN KEY (history_registrar_id)
REFERENCES "Registrar"(registrar_id)
DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE "HostHistory" ADD CONSTRAINT fk_hosthistory_host
FOREIGN KEY (host_repo_id)
REFERENCES "Host"(repo_id)
DEFERRABLE INITIALLY DEFERRED;