diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-04-15 12:51:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-15 12:51:08 +0000 |
commit | 7e807931985b8cc2f464c880599dfa0804088e0d (patch) | |
tree | 7f365943a3b4178dd746a53104d18e7891a8b31c /netconfsimulator/src | |
parent | d019e3b6526a06b79ea0192a474b53a2c408fa72 (diff) | |
parent | e92dbad4eb0edebbe0273ad40bdeb1c4b5424de0 (diff) |
Merge "Fix failing netconf integration tests"
Diffstat (limited to 'netconfsimulator/src')
-rw-r--r-- | netconfsimulator/src/test/java/integration/NetconfFunctionsIT.java | 12 |
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\"}"); } } |