Removed redundant env vars
[holmes/common.git] / holmes-actions / src / test / java / org / onap / holmes / common / aai / AaiQueryMdonsTest.java
index 09dce8e..6c038c2 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright 2020 - 2021 Fujitsu, ZTE Limited.
+ * Copyright 2020 - 2023 Fujitsu Limited, ZTE Corporation.
  * <p>
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  * in compliance with the License. You may obtain a copy of the License at
@@ -16,6 +16,9 @@ package org.onap.holmes.common.aai;
 
 import com.google.gson.JsonObject;
 import com.google.gson.JsonParser;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.MultivaluedHashMap;
+import jakarta.ws.rs.core.MultivaluedMap;
 import org.easymock.EasyMock;
 import org.junit.*;
 import org.junit.rules.ExpectedException;
@@ -29,16 +32,12 @@ import org.powermock.core.classloader.annotations.PrepareForTest;
 import org.powermock.modules.junit4.PowerMockRunner;
 import org.powermock.reflect.Whitebox;
 
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MultivaluedHashMap;
-import javax.ws.rs.core.MultivaluedMap;
 import java.io.*;
 import java.util.HashMap;
 import java.util.Map;
 
 import static org.easymock.EasyMock.anyObject;
 import static org.junit.Assert.assertEquals;
-import static org.onap.holmes.common.config.MicroServiceConfig.MSB_ADDR;
 
 @RunWith(PowerMockRunner.class)
 @PowerMockIgnore("javax.net.ssl.*")
@@ -53,12 +52,13 @@ public class AaiQueryMdonsTest {
 
     private static JsonObject data;
 
-    private static final String AAI_ADDR = "https://aai.onap:8443/aai/v19/";
+    private static final String AAI_ADDR = "https://aai.onap:443/aai/v19/";
 
     @BeforeClass
     public static void beforeClass() {
-        System.setProperty(MSB_ADDR, "127.0.0.1:80");
         System.setProperty("ENABLE_ENCRYPT", "true");
+        System.setProperty(MicroServiceConfig.AAI_ADDR, "aai");
+        System.setProperty(MicroServiceConfig.NAMESPACE, "onap");
 
         File file = new File(AaiQueryMdonsTest.class.getClassLoader().getResource("./aai-mdons.json").getFile());
         BufferedReader reader = null;