From ddedbd16185f756fd6171c6951877cedf78a647f Mon Sep 17 00:00:00 2001 From: Bruno Sakoto Date: Wed, 5 May 2021 08:11:19 -0400 Subject: Fix cps ran yang data model * Add a liquibase change set to update cps ran model data * Rename model "cps-ran-schema-model@2021-01-28.yang" to be compliant with yang specifications related to file layout https://tools.ietf.org/html/rfc7950#section-5.2 * Improve yang validation error handling to provide more information about the validation failure in the request response * Add csit test to verify cps ran model retrieval Issue-ID: CPS-377 Signed-off-by: Bruno Sakoto Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70 --- .../db/changes/08-update-yang-resources.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml (limited to 'cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml') diff --git a/cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml b/cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml new file mode 100644 index 000000000..a71b59a31 --- /dev/null +++ b/cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml @@ -0,0 +1,36 @@ +# ============LICENSE_START======================================================= +# Copyright (c) 2021 Bell Canada. +# ================================================================================ +# 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. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= + +databaseChangeLog: + - changeSet: + id: 8 + author: cps + label: xnf-data-preload + comment: Fix Yang model for cps ran + changes: + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-cps-ran-model-forward.sql + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-ietf-yang-types-forward.sql + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-ietf-inet-types-forward.sql + rollback: + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-cps-ran-model-rollback.sql + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-ietf-yang-types-rollback.sql + - sqlFile: + path: changelog/db/changes/08-update-yang-resources-ietf-inet-types-rollback.sql -- cgit 1.2.3-korg