summaryrefslogtreecommitdiffstats
path: root/infra
diff options
context:
space:
mode:
Diffstat (limited to 'infra')
-rw-r--r--infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/EditConfigTest.java (renamed from infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/TestValidate.java)8
-rw-r--r--infra/it/it-test/src/test/resources/messages/edit-config/edit-config-missing-mandatory-node.xml2
-rw-r--r--infra/it/it-test/src/test/resources/models/test-edit-config.yang (renamed from infra/it/it-test/src/test/resources/models/test-validate.yang)4
3 files changed, 7 insertions, 7 deletions
diff --git a/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/TestValidate.java b/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/EditConfigTest.java
index 5bc933f5e..cae1e4de2 100644
--- a/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/TestValidate.java
+++ b/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/EditConfigTest.java
@@ -60,8 +60,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
-public class TestValidate {
- private static final Logger LOG = LoggerFactory.getLogger(TestValidate.class);
+public class EditConfigTest {
+ private static final Logger LOG = LoggerFactory.getLogger(EditConfigTest.class);
private static final String SESSION_ID_FOR_REPORTING = "netconf-test-session";
private static final Document RPC_REPLY_OK = getReplyOk();
@@ -78,7 +78,7 @@ public class TestValidate {
MockitoAnnotations.initMocks(this);
final SchemaContext schemaContext =
- YangParserTestUtils.parseYangResources(TestValidate.class, "/models/test-validate.yang");
+ YangParserTestUtils.parseYangResources(EditConfigTest.class, "/models/test-edit-config.yang");
when(schemaService.registerSchemaContextListener(any())).thenAnswer(invocation -> {
SchemaContextListener listener = invocation.getArgument(0);
listener.onGlobalContextUpdated(schemaContext);
@@ -107,7 +107,7 @@ public class TestValidate {
}
@Test
- public void testValidateMissingMandatoryNode() throws Exception {
+ public void testMissingMandatoryNode() throws Exception {
final TransactionProvider transactionProvider = new TransactionProvider(dataBroker, SESSION_ID_FOR_REPORTING);
verifyResponse(edit("messages/edit-config/edit-config-missing-mandatory-node.xml", transactionProvider));
try {
diff --git a/infra/it/it-test/src/test/resources/messages/edit-config/edit-config-missing-mandatory-node.xml b/infra/it/it-test/src/test/resources/messages/edit-config/edit-config-missing-mandatory-node.xml
index 829ef567a..6d3adfba7 100644
--- a/infra/it/it-test/src/test/resources/messages/edit-config/edit-config-missing-mandatory-node.xml
+++ b/infra/it/it-test/src/test/resources/messages/edit-config/edit-config-missing-mandatory-node.xml
@@ -21,7 +21,7 @@
</target>
<default-operation>none</default-operation>
<config>
- <top-container xmlns="urn:honeycomb:params:xml:ns:yang:test:validate" xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="create">
+ <top-container xmlns="urn:honeycomb:params:xml:ns:yang:test:edit:config" xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="create">
<list-in-container>
<name>item1</name>>
</list-in-container>
diff --git a/infra/it/it-test/src/test/resources/models/test-validate.yang b/infra/it/it-test/src/test/resources/models/test-edit-config.yang
index 144045661..aa810ec08 100644
--- a/infra/it/it-test/src/test/resources/models/test-validate.yang
+++ b/infra/it/it-test/src/test/resources/models/test-edit-config.yang
@@ -1,6 +1,6 @@
-module test-validate {
+module test-edit-config {
yang-version 1;
- namespace "urn:honeycomb:params:xml:ns:yang:test:validate";
+ namespace "urn:honeycomb:params:xml:ns:yang:test:edit:config";
prefix "td";
revision "2018-06-08" {