Skip to content

Commit

Permalink
Rename constant to contain "fake" instead of "dummy"
Browse files Browse the repository at this point in the history
  • Loading branch information
sleberknight committed Dec 24, 2024
1 parent 012bae1 commit 9cbb547
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class VaultEncryptionHelperIntegrationTest {
// Location expected on Linux; expected installed via yum, apt-get, etc.
private static final String LINUX_ANSIBLE_PATH = "/usr/bin/" + ANSIBLE_VAULT_COMMAND;

// Dummy path; will cause JUnit assumption to be false
private static final String DUMMY_ANSIBLE_PATH = "/dummy/" + ANSIBLE_VAULT_COMMAND;
// Fake path; will cause JUnit assumption to be false
private static final String FAKE_ANSIBLE_PATH = "/fake/" + ANSIBLE_VAULT_COMMAND;

private static final String PASSWORD = "password100";

Expand All @@ -65,7 +65,7 @@ class VaultEncryptionHelperIntegrationTest {

@BeforeAll
static void beforeAll() {
ansibleVaultFile = pathOfAnsibleVault().orElse(DUMMY_ANSIBLE_PATH);
ansibleVaultFile = pathOfAnsibleVault().orElse(FAKE_ANSIBLE_PATH);
assumeTrue(Files.exists(Path.of(ansibleVaultFile)), () -> ANSIBLE_VAULT_COMMAND + " not found");
}

Expand Down Expand Up @@ -448,4 +448,4 @@ void shouldEncryptAndDecryptStrings(String variableName, String plainText) {
assertThat(decryptedString).isEqualTo(plainText);
}
}
}
}

0 comments on commit 9cbb547

Please sign in to comment.