From 3e52d0c33f6a7db4e81ebecc50623cd449c624ba Mon Sep 17 00:00:00 2001 From: Shiwei Tian Date: Thu, 26 Oct 2017 16:24:17 +0800 Subject: modify vnf enriched Issue-ID: HOLMES-71 Change-Id: I3f451df7e95c1ed9d72e9680f16255bc78c8fa36 Signed-off-by: Shiwei Tian --- .../src/test/java/org/onap/holmes/common/dmaap/DmaapServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'holmes-actions/src/test') 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(); -- cgit 1.2.3-korg