Skip to content

Commit

Permalink
add test cases for entity and connection id placeholder in Mqtt3Valid…
Browse files Browse the repository at this point in the history
…atorTest and HttpPushValidatorTest;

Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Jan 26, 2022
1 parent f182110 commit e1f4f2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public void testValidTargetAddress() {
connectivityConfig);
underTest.validate(getConnectionWithTarget("POST:"), emptyDittoHeaders, actorSystem, connectivityConfig);
underTest.validate(getConnectionWithTarget("GET:foo"), emptyDittoHeaders, actorSystem, connectivityConfig);
underTest.validate(getConnectionWithTarget("POST:connection/{{connection:id}}"), emptyDittoHeaders, actorSystem,
connectivityConfig);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ public void testValidTargetAddress() {
Mqtt3Validator.newInstance(mqttConfig)
.validate(connectionWithTarget("ditto/{{header:x}}"), DittoHeaders.empty(), actorSystem,
connectivityConfig);
Mqtt3Validator.newInstance(mqttConfig)
.validate(connectionWithTarget("device/{{entity:id}}"), DittoHeaders.empty(), actorSystem,
connectivityConfig);
Mqtt3Validator.newInstance(mqttConfig)
.validate(connectionWithTarget("connection/{{connection:id}}"), DittoHeaders.empty(), actorSystem,
connectivityConfig);
}

@Test
Expand Down

0 comments on commit e1f4f2d

Please sign in to comment.