Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgreenbird committed Feb 21, 2025
1 parent a3cf631 commit 8444cc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ public static void setupAETest() throws Exception {
// reset logging to avoid severe logs due to negative testing
LogManager.getLogManager().reset();

try {
// setup test params and encryption keys on each server
for (int i = 0; i < enclaveServer.length; i++) {
String serverName = enclaveServer[i];
Expand Down Expand Up @@ -246,6 +247,10 @@ public static void setupAETest() throws Exception {
createCEK(AETestConnectionString, cmkWin, cekWin, null);
}
}
} catch (Exception e) {
System.out.println("AESetup exception: "+e.getMessage());
e.printStackTrace();
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ private void testNumericAKV(String connStr) throws SQLException {
}
}

@BeforeEach
// @BeforeEach
public void registerAKVProvider() throws Exception {
// unregister the custom providers registered in AESetup
SQLServerConnection.unregisterColumnEncryptionKeyStoreProviders();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static void testCleanUp() throws Exception {
tempMap.put(Constants.CUSTOM_KEYSTORE_NAME, jksProvider);
}

if (null != akvProvider && null != applicationClientID && null != applicationKey) {
if (null != akvProvider) {
tempMap.put(Constants.AZURE_KEY_VAULT_NAME, akvProvider);
}

Expand Down

0 comments on commit 8444cc9

Please sign in to comment.