summaryrefslogtreecommitdiffstats
path: root/dcae-analytics-model/src/test/java
diff options
context:
space:
mode:
authorSingla, Rajiv (rs153v) <rs153v@att.com>2017-10-23 13:48:16 -0400
committerSingla, Rajiv (rs153v) <rs153v@att.com>2017-10-23 13:55:04 -0400
commit183f1e104940be50c93890a29384e09c0b037c84 (patch)
treedaf11d634e8cae3de119787e369fff3ca6e5dbbb /dcae-analytics-model/src/test/java
parent3ef6ad7ce7162e4406e0ba42dbfe1e4b4fea4a6e (diff)
TCA:Changed VNF alert vnf-id to vnf-name
Change-Id: I308ba9b6079a964b7326a0fe5e1a62eff15d710b Signed-off-by: Singla, Rajiv (rs153v) <rs153v@att.com> Issue-Id: DCAEGEN2-175
Diffstat (limited to 'dcae-analytics-model/src/test/java')
-rw-r--r--dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/AAITest.java10
-rw-r--r--dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/TCAVESResponseTest.java6
-rw-r--r--dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/util/json/mixin/facade/tca/TCAVESResponseMixinTest.java4
3 files changed, 10 insertions, 10 deletions
diff --git a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/AAITest.java b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/AAITest.java
index f47b391..689633b 100644
--- a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/AAITest.java
+++ b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/AAITest.java
@@ -43,15 +43,15 @@ public class AAITest extends BaseAnalyticsModelUnitTest {
@Test
public void getGenericVNFId() throws Exception {
- aai.setGenericVNFId(GENERIC_VNF_ID);
- assertThat("VNFID must be same", aai.getGenericVNFId(), is(GENERIC_VNF_ID));
+ aai.setGenericVNFName(GENERIC_VNF_ID);
+ assertThat("VNFID must be same", aai.getGenericVNFName(), is(GENERIC_VNF_ID));
}
@Test
public void setGenericVNFId() throws Exception {
final String genericVNFId = "testVNFID";
- aai.setGenericVNFId(GENERIC_VNF_ID);
- aai.setGenericVNFId(CHANGED_GENERIC_VNF_ID);
- assertThat("VNFID must be same as changed VNFID", aai.getGenericVNFId(), is(CHANGED_GENERIC_VNF_ID));
+ aai.setGenericVNFName(GENERIC_VNF_ID);
+ aai.setGenericVNFName(CHANGED_GENERIC_VNF_ID);
+ assertThat("VNFID must be same as changed VNFID", aai.getGenericVNFName(), is(CHANGED_GENERIC_VNF_ID));
}
}
diff --git a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/TCAVESResponseTest.java b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/TCAVESResponseTest.java
index c58abf4..3724c8d 100644
--- a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/TCAVESResponseTest.java
+++ b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/facade/tca/TCAVESResponseTest.java
@@ -40,7 +40,7 @@ public class TCAVESResponseTest extends BaseAnalyticsModelUnitTest {
assertJsonConversions(TCA_VES_CEF_RESPONSE_JSON_FILE_LOCATION, TCAVESResponse.class);
assertThat("VES CEF Message Response AAI generics VNF Id must match",
- vesCEFMessageResponse.getAai().getGenericVNFId(), is("vpp-test(?)"));
+ vesCEFMessageResponse.getAai().getGenericVNFName(), is("vpp-test(?)"));
assertThat("VES CEF Message target type must be parsed correctly as VNF",
vesCEFMessageResponse.getTargetType(), is("VNF"));
@@ -56,8 +56,8 @@ public class TCAVESResponseTest extends BaseAnalyticsModelUnitTest {
assertThat("closedLoopEventClient must be tca.instance00001",
vesCEFMessageResponse.getClosedLoopEventClient(), is("tca.instance00001"));
assertThat("target_type must be VNF", vesCEFMessageResponse.getTargetType(), is("VNF"));
- assertThat("target must be VNF", vesCEFMessageResponse.getTarget(), is("generic-vnf.vnf-id"));
- assertThat("aai generic vnf id must be vpp-test(?)", vesCEFMessageResponse.getAai().getGenericVNFId(),
+ assertThat("target must be VNF", vesCEFMessageResponse.getTarget(), is("generic-vnf.vnf-name"));
+ assertThat("aai generic vnf id must be vpp-test(?)", vesCEFMessageResponse.getAai().getGenericVNFName(),
is("vpp-test(?)"));
assertThat("from must be DCAE", vesCEFMessageResponse.getFrom(), is("DCAE"));
assertThat("policyScope must be resource=vFirewall;type=configuration",
diff --git a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/util/json/mixin/facade/tca/TCAVESResponseMixinTest.java b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/util/json/mixin/facade/tca/TCAVESResponseMixinTest.java
index ca9a288..98c52af 100644
--- a/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/util/json/mixin/facade/tca/TCAVESResponseMixinTest.java
+++ b/dcae-analytics-model/src/test/java/org/openecomp/dcae/apod/analytics/model/util/json/mixin/facade/tca/TCAVESResponseMixinTest.java
@@ -42,10 +42,10 @@ public class TCAVESResponseMixinTest extends BaseAnalyticsModelUnitTest {
assertJsonConversions(TCA_VES_CEF_RESPONSE_JSON_FILE_LOCATION, TCAVESResponse.class);
assertThat("VES CEF Message Response AAI generics VNF Id must match",
- vesCEFMessageResponse.getAai().getGenericVNFId(), is("vpp-test(?)"));
+ vesCEFMessageResponse.getAai().getGenericVNFName(), is("vpp-test(?)"));
assertThat("VES CEF Message Response AAI generic Server Id must match",
- vesCEFMessageResponse.getAai().getGenericServerId(), is("dfw1lb01lb01"));
+ vesCEFMessageResponse.getAai().getGenericServerName(), is("dfw1lb01lb01"));
assertThat("VES CEF Message target type must be parsed correctly as VNF",
vesCEFMessageResponse.getTargetType(), is("VNF"));