rlevas commented on a change in pull request #69: KNOX-1812 - The Knox Gateway 
truststore should be configurable
URL: https://github.com/apache/knox/pull/69#discussion_r264292124
 
 

 ##########
 File path: 
gateway-server/src/test/java/org/apache/knox/gateway/services/security/impl/JettySSLServiceTest.java
 ##########
 @@ -333,13 +339,14 @@ public void 
TestBuildSslContextFactoryExplicitTrustStoreErrorGettingPassword() t
     String identityKeyAlias = "server";
     Path truststorePath = Paths.get(basedir, "target", "test-classes", 
"keystores", "server-truststore.jks");
     String truststoreType = "jks";
+    String truststorePasswordAlias = "trust_store_password";
 
-    GatewayConfig config = createGatewayConfig(true, true, 
identityKeystorePath, identityKeystoreType, identityKeyAlias, truststorePath, 
truststoreType);
+    GatewayConfig config = createGatewayConfig(true, true, 
identityKeystorePath, identityKeystoreType, identityKeyAlias, truststorePath, 
truststoreType, truststorePasswordAlias);
 
     AliasService aliasService = createMock(AliasService.class);
     
expect(aliasService.getGatewayIdentityKeystorePassword()).andReturn(identityKeystorePassword).atLeastOnce();
     
expect(aliasService.getGatewayIdentityPassphrase()).andReturn(identityKeyPassphrase).atLeastOnce();
-    
expect(aliasService.getPasswordFromAliasForGateway(eq("gateway-truststore-password"))).andThrow(new
 AliasServiceException(null)).atLeastOnce();
+    
expect(aliasService.getPasswordFromAliasForGateway(eq("trust_store_password"))).andThrow(new
 AliasServiceException(null)).atLeastOnce();
 
 Review comment:
   Fixing...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to