X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Frestclient%2FTestAaiServiceClient.java;h=ac2d7e483f0ae50703aa984b3a4b5b4757e60626;hb=refs%2Fchanges%2F97%2F50697%2F1;hp=96620ee834b5a277757c51cff548f1d7a039a9c7;hpb=ce332032dd208c5c769a2297409d8aca3f780fa8;p=aai%2Fmodel-loader.git diff --git a/src/test/java/org/onap/aai/modelloader/restclient/TestAaiServiceClient.java b/src/test/java/org/onap/aai/modelloader/restclient/TestAaiServiceClient.java index 96620ee..ac2d7e4 100644 --- a/src/test/java/org/onap/aai/modelloader/restclient/TestAaiServiceClient.java +++ b/src/test/java/org/onap/aai/modelloader/restclient/TestAaiServiceClient.java @@ -1,5 +1,5 @@ /** - * ============LICENSE_START======================================================= + * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. @@ -39,7 +39,7 @@ import org.junit.Test; import org.onap.aai.modelloader.config.ModelLoaderConfig; /** - * Local testing of the Babel service + * Local testing of the A&AI Service client. * */ public class TestAaiServiceClient { @@ -55,6 +55,8 @@ public class TestAaiServiceClient { Properties props = new Properties(); props.put("ml.aai.KEYSTORE_PASSWORD", "2244"); + props.put("ml.aai.KEYSTORE_FILE", "src/test/resources/auth/aai-client-cert.p12"); + props.put("ml.aai.KEYSTORE_PASSWORD", "OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o"); ModelLoaderConfig config = new ModelLoaderConfig(props, "."); aaiClient = new AaiRestClient(config); } @@ -73,7 +75,7 @@ public class TestAaiServiceClient { @Test public void testOperations() { - String url = "http://localhost"; + String url = "http://localhost:8080"; String transId = ""; MediaType mediaType = MediaType.APPLICATION_JSON_TYPE; aaiClient.getResource(url, "", mediaType);