summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-08-09 09:50:14 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-08-09 09:52:30 +0200
commit13d25e9a60ac6393590795ec0b4d2bc390627497 (patch)
tree0ae34dc2886dc29d0aec30925d08b469d8279553
parentaf6c4734038978572a9989b1ce8c8af6b71757a5 (diff)
Rename TestValidate to EditConfigTest
The test does not use <validate> RPC in contrast to ValidateTest from: https://gerrit.fd.io/r/#/c/14040/ Change-Id: I57da44256515cf10afbd86ef7d7b1607caa3f52e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
-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" {