Skip to content

Commit

Permalink
modify integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yasasghari committed Mar 5, 2024
1 parent 6812f52 commit 05fee1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,14 @@
@Transactional
public class ApplicationStatusControllerIntegrationTest {

/**
* Default password, managed in GitHub Actions Secrets & Variables
*/
private static final String DEFAULT_PASS = System.getenv("DEFAULT_PASS");

/**
* Mocking a PostgreSQL database for the integration tests.
* The database is configured with a specific, name, username and
* password as well as the latest postgreSQL version.
* {@code @Container} sets the field as a TestContainer container.
*/
@Container
private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:latest").withDatabaseName("postgresglobalapp").withUsername("postgres").withPassword(DEFAULT_PASS);
private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:latest").withDatabaseName("postgresglobalapp").withUsername("postgres").withPassword("Qwerty123456!");

/**
* ApplicationStatusController is an autowired instance of the controller handling HTTP requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,14 @@
@Transactional
public class ApplicationStatusIntegrationTest {

/**
* Default password, managed in GitHub Actions Secrets & Variables
*/
private static final String DEFAULT_PASS = System.getenv("DEFAULT_PASS");


/**
* Mocking a PostgreSQL database for the integration tests.
* The database is configured with a specific, name, username and
* password as well as the latest postgreSQL version.
* {@code @Container} sets the field as a TestContainer container.
*/
@Container
private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:latest").withDatabaseName("postgresglobalapp").withUsername("postgres").withPassword(DEFAULT_PASS);
private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:latest").withDatabaseName("postgresglobalapp").withUsername("postgres").withPassword("Qwerty123456!");

/**
* ApplicationStatusService is an autowired instance containing business-logic for status-related operations.
Expand Down

0 comments on commit 05fee1b

Please sign in to comment.