From 3139ece993c68ce7e40d166acdd5d9572a3a8a1e Mon Sep 17 00:00:00 2001 From: niamhcore Date: Fri, 30 Jul 2021 16:25:16 +0100 Subject: Retrieve yang-resources for one or more modules Updating openapi to add a new rest endpoint Updating restconf client to support post with json Adding a ModuleResourceNotFound exception Adding a test util class Fixing merge conflict Refactoring SDNC operations Issue-ID: CPS-484 Signed-off-by: niamhcore Change-Id: Id76dfe4cb12053771883e0271153d7bf7cd98548 --- src/test/resources/GetModules.json | 18 ++++++++++++++++++ src/test/resources/application.yml | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 src/test/resources/GetModules.json (limited to 'src/test/resources') diff --git a/src/test/resources/GetModules.json b/src/test/resources/GetModules.json new file mode 100644 index 00000000..23fe77c2 --- /dev/null +++ b/src/test/resources/GetModules.json @@ -0,0 +1,18 @@ +{ + "operation": "read", + "data": { + "modules": [ + { + "name": "ietf-yang-library", + "revision": "2016-06-21" + }, + { + "name": "nc-notifications", + "revision": "2008-07-14" + } + ] + }, + "cmHandleProperties": { + "subsystemId": "system-001" + } +} \ No newline at end of file diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index 8ef864bd..b7c5bab9 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -24,3 +24,10 @@ security: auth: username: cpsuser password: cpsr0cks! + +sdnc: + baseUrl: http://test + topologyId: test-topology + auth: + username: test + password: test -- cgit 1.2.3-korg