diff options
author | FrancescoFioraEst <francesco.fiora@est.tech> | 2021-08-31 15:55:59 +0100 |
---|---|---|
committer | Francesco Fiora <francesco.fiora@est.tech> | 2021-09-01 12:03:42 +0000 |
commit | 466783f7638c9173f08a63d51af2c799c0a63598 (patch) | |
tree | 9a17bdd1b3d4895bb771bdcd29222c50c405c9a7 /models/src/test | |
parent | bd376e1dd5e8ccb1893ef244dcd9e4b1a0686150 (diff) |
Verify alignment with Definition of TOSCA Control Loop Types
Issue-ID: POLICY-3612
Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'models/src/test')
2 files changed, 4 insertions, 2 deletions
diff --git a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java index 7c163870e..f34777a70 100644 --- a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java +++ b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java @@ -59,7 +59,8 @@ class ParticipantStatusTest { ToscaConceptIdentifier id = new ToscaConceptIdentifier("id", "1.2.3"); orig.setControlLoopId(id); orig.setParticipantId(id); - orig.setParticipantType(id); + ToscaConceptIdentifier type = new ToscaConceptIdentifier("type", "2.3.4"); + orig.setParticipantType(type); orig.setMessageId(UUID.randomUUID()); orig.setState(ParticipantState.ACTIVE); orig.setHealthStatus(ParticipantHealthStatus.HEALTHY); @@ -70,6 +71,7 @@ class ParticipantStatusTest { ParticipantDefinition participantDefinitionUpdate = new ParticipantDefinition(); participantDefinitionUpdate.setParticipantId(id); + participantDefinitionUpdate.setParticipantType(type); ControlLoopElementDefinition clDefinition = getClElementDefinition(id); participantDefinitionUpdate.setControlLoopElementDefinitionList(List.of(clDefinition)); orig.setParticipantDefinitionUpdates(List.of(participantDefinitionUpdate)); diff --git a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java index 06141de2b..6fe8604cf 100644 --- a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java +++ b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java @@ -67,7 +67,7 @@ class ParticipantUpdateTest { toscaNodeTemplate.setVersion("1.2.3"); ParticipantDefinition participantDefinitionUpdate = new ParticipantDefinition(); - participantDefinitionUpdate.setParticipantId(id); + participantDefinitionUpdate.setParticipantType(id); ControlLoopElementDefinition clDefinition = getClElementDefinition(id); participantDefinitionUpdate.setControlLoopElementDefinitionList(List.of(clDefinition)); orig.setParticipantDefinitionUpdates(List.of(participantDefinitionUpdate)); |