From e92dbad4eb0edebbe0273ad40bdeb1c4b5424de0 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Wed, 15 Apr 2020 13:01:57 +0200 Subject: Fix failing netconf integration tests Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski Change-Id: I98e22b54fe366bec392cf7f37c0fd52417ff2433 --- .../src/test/java/integration/NetconfFunctionsIT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java b/netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java index 95ef586..3830bbb 100644 --- a/netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java +++ b/netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -152,9 +152,9 @@ public class NetconfFunctionsIT { Set configChangeContent = kafkaMessages.stream().map(KafkaMessage::getConfiguration) .collect(Collectors.toSet()); assertThat(configChangeContent) - .anyMatch(el -> el.contains("new value: /pnf-simulator:config/itemValue1 = 100")); + .anyMatch(el -> el.contains("\"new\": {\"path\": \"/pnf-simulator:config/itemValue1\", \"value\": \"100\"}")); assertThat(configChangeContent) - .anyMatch(el -> el.contains("new value: /pnf-simulator:config/itemValue2 = 200")); + .anyMatch(el -> el.contains("\"new\": {\"path\": \"/pnf-simulator:config/itemValue2\", \"value\": \"200\"}")); } } @@ -170,9 +170,9 @@ public class NetconfFunctionsIT { assertThat(kafkaMessages).hasSize(2); assertThat(kafkaMessages.get(0).getConfiguration()) - .contains("new value: /pnf-simulator:config/itemValue1 = 100"); + .contains("\"new\": {\"path\": \"/pnf-simulator:config/itemValue1\", \"value\": \"100\"}"); assertThat(kafkaMessages.get(1).getConfiguration()) - .contains("new value: /pnf-simulator:config/itemValue2 = 200"); + .contains("\"new\": {\"path\": \"/pnf-simulator:config/itemValue2\", \"value\": \"200\"}"); } } -- cgit 1.2.3-korg