Skip to content

Commit

Permalink
chore: minor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
vcrfxia committed May 31, 2020
1 parent dafa8e0 commit 0ffaf29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void shouldReloadCert() throws Exception {
assertThat(response.statusMessage(), is("OK"));

// When: load expired key store
ServerKeyStore.loadInvalidStore();
ServerKeyStore.loadExpiredStore();
assertThatEventually(
"Should fail to execute query with expired key store",
() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public final class ServerKeyStore {
+ "jBkD4gXusp6pUOWkzmVSJ19ySasXdPGZLp3Vo3/VZJm0NkKc0rz6Houutu1JAyxLpVbd7XBbhjLYzEPCms/xnf3AAs"
+ "XA==";

private static final String INVALID_BASE64_ENCODED_STORE =
private static final String EXPIRED_BASE64_ENCODED_STORE =
"/u3+7QAAAAIAAAABAAAAAQADYmFkAAABcmJlWWEAAAUBMIIE/TAOBgorBgEEASoCEQEBBQAEggTp5B9lmw0sNM0Db50V"
+ "zcdYaSEfkbDWyaTp4syeFm9srNGcYmO1LWCToCMXLcQXeyaMaSeOaUXXPv4BhpFUO6l7Za7pKYwKvZoV6lSsvMBttI"
+ "7hY8hCIqGvqbXn6a7gFyEYnZ8lKxhQr4AcOsy6c5tE3gqvVABlB98PTFNNlNR9wDHfeyXDNf5gHLC2hHNZz+jaCu5w"
Expand Down Expand Up @@ -147,9 +147,9 @@ SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, keyStorePath(),
);
}

public static void loadInvalidStore() {
KeyStoreUtil.putStore(Paths.get(keyStorePath()), INVALID_BASE64_ENCODED_STORE);
log.info("Loaded invalid store");
public static void loadExpiredStore() {
KeyStoreUtil.putStore(Paths.get(keyStorePath()), EXPIRED_BASE64_ENCODED_STORE);
log.info("Loaded expired store");
}

public static void loadValidStore() {
Expand Down

0 comments on commit 0ffaf29

Please sign in to comment.