summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2021-05-05 08:11:19 -0400
committerRishi Chail <rishi.chail@est.tech>2021-05-07 08:26:42 +0000
commitddedbd16185f756fd6171c6951877cedf78a647f (patch)
tree65528010486dfa7706e4e89ad54d82df8863d96a /cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml
parent4395c1fad0b92f0f7084ca9d70e6e26f61007513 (diff)
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 <bruno.sakoto@bell.ca> Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70
Diffstat (limited to 'cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml')
-rw-r--r--cps-ri/src/main/resources/changelog/db/changes/08-update-yang-resources.yaml36
1 files changed, 36 insertions, 0 deletions
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