Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Jan 24, 2025
1 parent 9ca59b0 commit ff5568d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java/code/src/com/suse/manager/hub/test/HubManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public class HubManagerTest extends JMockBaseTestCaseWithUser {

private String originalFqdn;

private String originalReportDb;

private String originalProductVersion;

@BeforeEach
@Override
public void setUp() throws Exception {
Expand All @@ -115,6 +119,8 @@ public void setUp() throws Exception {
// Setting a fake hostname for the token validation
originalFqdn = ConfigDefaults.get().getHostname();
originalServerSecret = Config.get().getString("server.secret_key");
originalReportDb = Config.get().getString(ConfigDefaults.REPORT_DB_NAME);
originalProductVersion = Config.get().getString(ConfigDefaults.PRODUCT_VERSION_MGR);

Config.get().setString(ConfigDefaults.SERVER_HOSTNAME, LOCAL_SERVER_FQDN);
Config.get().setString("server.secret_key", // my-super-secret-key-for-testing
Expand Down Expand Up @@ -144,6 +150,8 @@ public void tearDown() throws Exception {

Config.get().setString(ConfigDefaults.SERVER_HOSTNAME, originalFqdn);
Config.get().setString("server.secret_key", originalServerSecret);
Config.get().setString(ConfigDefaults.REPORT_DB_NAME, originalReportDb);
Config.get().setString(ConfigDefaults.PRODUCT_VERSION_MGR, originalProductVersion);
}

/**
Expand Down

0 comments on commit ff5568d

Please sign in to comment.