summaryrefslogtreecommitdiffstats
path: root/holmes-actions
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-10-25 19:50:49 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-10-25 20:06:44 +0800
commita7d62526f2e0752bd1daf84844ed137158aa3cff (patch)
treea62979ea4a55f656b095527de178e024032d0da0 /holmes-actions
parentf0ae1a9f8d1464782a041c2361400dddbf1e890a (diff)
Fixed the AAI API Version for VoLTE1.2.3
Change-Id: I685cd2e1547b7c9d66c3c54c0f5b76ae4fe873ae Issue-ID: HOLMES-177 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'holmes-actions')
-rw-r--r--holmes-actions/pom.xml2
-rw-r--r--holmes-actions/src/main/java/org/onap/holmes/common/aai/config/AaiConfig.java4
-rw-r--r--holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java4
3 files changed, 5 insertions, 5 deletions
diff --git a/holmes-actions/pom.xml b/holmes-actions/pom.xml
index 2b43532..5e177f0 100644
--- a/holmes-actions/pom.xml
+++ b/holmes-actions/pom.xml
@@ -12,7 +12,7 @@
<parent>
<groupId>org.onap.holmes.common</groupId>
<artifactId>holmes-common-parent</artifactId>
- <version>1.2.2</version>
+ <version>1.2.3</version>
</parent>
<name>holmes-common-service</name>
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/aai/config/AaiConfig.java b/holmes-actions/src/main/java/org/onap/holmes/common/aai/config/AaiConfig.java
index af1a592..b3cd28a 100644
--- a/holmes-actions/src/main/java/org/onap/holmes/common/aai/config/AaiConfig.java
+++ b/holmes-actions/src/main/java/org/onap/holmes/common/aai/config/AaiConfig.java
@@ -35,7 +35,7 @@ public class AaiConfig {
private static final String AAI_PREF = "/aai/";
- public static final String AAI_VNF_ADDR = AAI_PREF + AAI_API_VERSION + "/network/generic-vnfs/generic-vnf";
+ public static final String AAI_VNF_ADDR = AAI_PREF + "v11/network/generic-vnfs/generic-vnf";
public static final String AAI_TP_UPDATE = AAI_PREF + AAI_API_VERSION + "/network/pnfs/pnf/{pnfName}/p-interfaces/p-interface/nodeId-{pnfName}-ltpId-{ifName}";
@@ -53,7 +53,7 @@ public class AaiConfig {
public static final String AAI_SERVICE_INSTANCES_ADDR_4_CCVPN = AAI_PREF + AAI_API_VERSION + "/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}";
- public static final String AAI_VM_ADDR = AAI_PREF + AAI_API_VERSION + "/search/nodes-query?search-node-type=vserver&filter=";
+ public static final String AAI_VM_ADDR = AAI_PREF + "v11/search/nodes-query?search-node-type=vserver&filter=";
}
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
index 1d3d2e9..68e9f84 100644
--- a/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
+++ b/holmes-actions/src/test/java/org/onap/holmes/common/aai/config/AaiConfigTest.java
@@ -24,8 +24,8 @@ public class AaiConfigTest {
@Test
public void testAaiConfig_get_static_fields() {
- String aaiVnfAddr = "/aai/v14/network/generic-vnfs/generic-vnf";
- String aaiVmAddr = "/aai/v14/search/nodes-query?search-node-type=vserver&filter=";
+ String aaiVnfAddr = "/aai/v11/network/generic-vnfs/generic-vnf";
+ String aaiVmAddr = "/aai/v11/search/nodes-query?search-node-type=vserver&filter=";
String xTransactionId = "9999";
String xFromAppId = "jimmy-postman";
assertThat(aaiVnfAddr, equalTo(AaiConfig.AaiConsts.AAI_VNF_ADDR));