Keep vim_details while reporting VM deletion 74/13074/2
authorGulsum Atici <gulsum.atici@canonical.com>
Wed, 22 Mar 2023 19:57:26 +0000 (22:57 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Wed, 22 Mar 2023 20:09:57 +0000 (23:09 +0300)
Change-Id: I27577b2fc93a585affc947abcec8352562f23f49
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
NG-RO/osm_ng_ro/monitor.py
NG-RO/osm_ng_ro/tests/sample_data.py
NG-RO/osm_ng_ro/tests/test_monitor.py
releasenotes/notes/keep_vim_details-266dc59a30b62519.yaml [new file with mode: 0644]

index b9a5908..529ce0e 100644 (file)
@@ -419,7 +419,6 @@ class MonitorVms:
             {
                 "vim_status": "DELETED",
                 "vim_message": "Deleted externally",
-                "vim_details": None,
                 "vim_id": None,
                 "vim_name": None,
                 "interfaces": None,
index b631d8c..e85ce35 100644 (file)
@@ -46,7 +46,6 @@ server_other_info = {
 deleted_externally = {
     "vim_status": "DELETED",
     "vim_message": "Deleted externally",
-    "vim_details": None,
     "vim_id": None,
     "vim_name": None,
     "interfaces": None,
index cb61621..23e6d52 100644 (file)
@@ -1153,7 +1153,6 @@ class TestMonitorVms(unittest.TestCase):
         vdur_vim_info_update = {
             "vim_status": "ACTIVE",
             "vim_message": None,
-            "vim_details": None,
             "vim_id": vm1_id,
             "vim_name": "test7-vnf-hackfest_basic-VM-000000",
         }
diff --git a/releasenotes/notes/keep_vim_details-266dc59a30b62519.yaml b/releasenotes/notes/keep_vim_details-266dc59a30b62519.yaml
new file mode 100644 (file)
index 0000000..0f88597
--- /dev/null
@@ -0,0 +1,21 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# 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.
+#######################################################################################
+---
+fixes:
+  - |
+     vim_details was set to None while reporting VM deletion by mistake. vim_details are kept by this fix.
+