Skip to content

Commit

Permalink
Issue #106 fix unit test
Browse files Browse the repository at this point in the history
* RetrievePolicyId was recently added to protocoladapter
* '/policyId' + 'retrieve' is now a valid combination
* use 'merge' to produce invalid topic+path combination instead

Signed-off-by: Joel Bartelheimer <joel.bartelheimer@bosch.io>
  • Loading branch information
jbartelh committed Nov 8, 2021
1 parent 7cc7cbb commit bd8d775
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void testHeadersOnTwinTopicPathCombinationError() {
// WHEN: message sent valid topic and invalid topic+path combination
final String messageContent = "{ \n" +
" \"topic\":\"Testspace/octopus/things/twin/commands/retrieve\",\n" +
" \"path\":\"/policyId\",\n" +
" \"path\":\"/invalid\",\n" +
" \"headers\":{ \n" +
" \"correlation-id\":\"" + correlationId + "\"\n" +
" }\n" +
Expand Down Expand Up @@ -452,7 +452,7 @@ public void testTopicOnLiveTopicPathCombinationError() {

// WHEN: message sent with valid topic and invalid topic+path combination
final String topicPrefix = "Testspace/octopus/things/live/";
final String topic = topicPrefix + "commands/retrieve";
final String topic = topicPrefix + "commands/merge";
final String path = "/policyId";
final String messageContent = "{ \n" +
" \"topic\":\"" + topic + "\",\n" +
Expand Down

0 comments on commit bd8d775

Please sign in to comment.