consul/internal/resource
Matt Keeler 37636eab71
Catalog V2 Container Based Integration Test (#17674)
* Implement the Catalog V2 controller integration container tests

This now allows the container tests to import things from the root module. However for now we want to be very restrictive about which packages we allow importing.

* Add an upgrade test for the new catalog

Currently this should be dormant and not executed. However its put in place to detect breaking changes in the future and show an example of how to do an upgrade test with integration tests structured like catalog v2.

* Make testutil.Retry capable of performing cleanup operations

These cleanup operations are executed after each retry attempt.

* Move TestContext to taking an interface instead of a concrete testing.T

This allows this to be used on a retry.R or generally anything that meets the interface.

* Move to using TestContext instead of background contexts

Also this forces all test methods to implement the Cleanup method now instead of that being an optional interface.


Co-authored-by: Daniel Upton <daniel@floppy.co>
2023-06-16 16:29:50 -04:00
..
demo resource: optionally compare timestamps in `EqualStatus` (#17275) 2023-05-10 10:37:54 +01:00
reaper Reaper controller for cascading deletes of owner resources (#17256) 2023-05-09 13:57:40 -05:00
resourcetest Catalog V2 Container Based Integration Test (#17674) 2023-06-16 16:29:50 -04:00
testdata Add type validations for the catalog resources (#17211) 2023-05-12 09:24:55 -04:00
equality.go resource: optionally compare timestamps in `EqualStatus` (#17275) 2023-05-10 10:37:54 +01:00
equality_test.go resource: optionally compare timestamps in `EqualStatus` (#17275) 2023-05-10 10:37:54 +01:00
errors.go Implement the service endpoints controller (#17216) 2023-06-06 17:09:48 -04:00
errors_test.go Implement the service endpoints controller (#17216) 2023-06-06 17:09:48 -04:00
reference.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
registry.go Create tombstone on resource `Delete` (#17108) 2023-04-28 10:49:08 -05:00
registry_test.go Create tombstone on resource `Delete` (#17108) 2023-04-28 10:49:08 -05:00
tombstone.go Create tombstone on resource `Delete` (#17108) 2023-04-28 10:49:08 -05:00