Skip to content

Commit

Permalink
chore(test): Remove manual setup from overlay E2E test (#1633)
Browse files Browse the repository at this point in the history
* chore(test): Remove manual setup from overlay E2E test

Avoid having to manually generate the database script to bootstrap the
overlay test.

This is a bit of a hack. It starts a second Cerbos instance connected to
the same Postgres instance and runs the bootstrapping tests to load the
policies into the database. Then, by reusing the same `*testing.T`, it
prevents the resources from being torn down and runs the second set of
tests on the same database.

Fixes #1612

Signed-off-by: Charith Ellawala <charith@cerbos.dev>

* Delete the SQL script

Signed-off-by: Charith Ellawala <charith@cerbos.dev>

---------

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed Jun 8, 2023
1 parent c823d98 commit 669c33e
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 262 deletions.

0 comments on commit 669c33e

Please sign in to comment.