summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src/test/java
diff options
context:
space:
mode:
authorShiwei Tian <tian.shiwei@zte.com.cn>2017-10-26 16:24:17 +0800
committerShiwei Tian <tian.shiwei@zte.com.cn>2017-10-26 21:42:08 +0800
commit3e52d0c33f6a7db4e81ebecc50623cd449c624ba (patch)
tree963fa40f2fe2816d30c3d38ea14488e14379660a /holmes-actions/src/test/java
parent80aa5b49e5e3fb696231ce66acf198ff50d74731 (diff)
modify vnf enriched
Issue-ID: HOLMES-71 Change-Id: I3f451df7e95c1ed9d72e9680f16255bc78c8fa36 Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/test/java')
-rw-r--r--holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java b/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
index 3f61813..5099fba 100644
--- a/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
+++ b/holmes-actions/src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java
@@ -70,7 +70,7 @@ public class DmaapServiceTest {
.invokeMethod(dmaapService, "getDefaultPolicyMsg", "tetss");
PowerMock.verifyAll();
- assertThat(policyMsg.getTarget(), equalTo("vserver.vserver-name"));
+ assertThat(policyMsg.getTarget(), equalTo("vserver.vserver-id"));
assertThat(policyMsg.getTargetType(), equalTo("VM"));
assertThat(policyMsg.getAai().get("vserver.vserver-name"), equalTo("tetss"));
}
@@ -179,6 +179,7 @@ public class DmaapServiceTest {
vesAlarm.setEventId("11111");
vesAlarm.setEventName("3333");
vesAlarm.setSourceId("111");
+ vesAlarm.setStartEpochMicrosec(11111L);
PowerMock.expectPrivate(dmaapService, "getVnfEntity", anyObject(String.class),
anyObject(String.class)).andReturn(null).anyTimes();