aboutsummaryrefslogtreecommitdiffstats
path: root/netconfsimulator
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-15 13:01:57 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-15 13:01:59 +0200
commite92dbad4eb0edebbe0273ad40bdeb1c4b5424de0 (patch)
treec3d9b2093acdff595c3622a2c0b54cc11992d963 /netconfsimulator
parentbfba4727fb9da1579705f5b9b0a5dc1c37d13510 (diff)
Fix failing netconf integration tests
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I98e22b54fe366bec392cf7f37c0fd52417ff2433
Diffstat (limited to 'netconfsimulator')
-rw-r--r--netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java12
1 files 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<String> 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\"}");
}
}