Skip to content

Commit

Permalink
In response to demo1 failing in github actions, moved some code creat…
Browse files Browse the repository at this point in the history
…ing the mock database back into Demo1 from the base workflow class.
  • Loading branch information
michelleblom committed Nov 22, 2024
1 parent 7bc0349 commit d769c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,14 @@ public class Demo1 extends Workflow {
*/
private final static PostgreSQLContainer<?> postgres = createTestContainer();

/**
* Container delegate for initialising mock-up database.
*/
private final static JdbcDatabaseDelegate containerDelegate = setupContainerStartPostgres(postgres);


/**
* Database init.
*/
@BeforeClass
public static void beforeAll() {

final var containerDelegate = setupContainerStartPostgres(postgres);

var s = Persistence.openSession();
s.beginTransaction();

Expand Down Expand Up @@ -150,6 +146,7 @@ public void runDemo1() throws InterruptedException {
assertEquals(dashboard.get(ASM_STATE), PARTIAL_AUDIT_INFO_SET.toString());

// 4. Generate assertions; sanity check
final var containerDelegate = new JdbcDatabaseDelegate(postgres, "");
generateAssertions("SQL/demo1-assertions.sql", containerDelegate,1);
dashboard = getDoSDashBoardRefreshResponse();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ public class Workflow extends TestClassWithDatabase {
*/
protected static final String dataPath = "src/test/resources/CSVs/";

/**
* Container for the mock-up database.
*/
//protected final static PostgreSQLContainer<?> postgres = createTestContainer();

/**
* Container delegate for initialising mock-up database.
*/
//protected final static JdbcDatabaseDelegate containerDelegate = setupContainerStartPostgres(postgres);

/**
* Strings for colorado-rla JSON structures.
*/
Expand Down

0 comments on commit d769c68

Please sign in to comment.