- public void testNoAAIAuth() throws IOException {\r
- Properties props = new Properties();\r
- props.load(\r
- new FileInputStream("src/test/resources/model-loader-empty-auth-password.properties"));\r
-\r
- ModelLoaderConfig config = new ModelLoaderConfig(props, null);\r
- AaiRestClient aaiClient = new AaiRestClient(config);\r
-\r
- assertFalse("Empty AAI Password should result in no basic authentication",\r
- aaiClient.useBasicAuth());\r
-\r
- props.load(new FileInputStream("src/test/resources/model-loader-no-auth-password.properties"));\r
- config = new ModelLoaderConfig(props, null);\r
- aaiClient = new AaiRestClient(config);\r
-\r
- assertFalse("No AAI Password should result in no basic authentication",\r
- aaiClient.useBasicAuth());\r
+ public void testDecryptKeystorePassword() {\r
+ String password = "youshallnotpass";\r
+ ModelLoaderConfig config =\r
+ createObfuscatedTestConfig(ModelLoaderConfig.PROP_ML_DISTRIBUTION_KEYSTORE_PASSWORD, password);\r
+ assertEquals(password, config.getKeyStorePassword());\r