From 69dbd58764a0034b66f8b5b5881899e297adbb23 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Wed, 22 Mar 2023 22:57:26 +0300 Subject: [PATCH] Keep vim_details while reporting VM deletion Change-Id: I27577b2fc93a585affc947abcec8352562f23f49 Signed-off-by: Gulsum Atici --- NG-RO/osm_ng_ro/monitor.py | 1 - NG-RO/osm_ng_ro/tests/sample_data.py | 1 - NG-RO/osm_ng_ro/tests/test_monitor.py | 1 - .../keep_vim_details-266dc59a30b62519.yaml | 21 +++++++++++++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/keep_vim_details-266dc59a30b62519.yaml diff --git a/NG-RO/osm_ng_ro/monitor.py b/NG-RO/osm_ng_ro/monitor.py index b9a59085..529ce0e1 100644 --- a/NG-RO/osm_ng_ro/monitor.py +++ b/NG-RO/osm_ng_ro/monitor.py @@ -419,7 +419,6 @@ class MonitorVms: { "vim_status": "DELETED", "vim_message": "Deleted externally", - "vim_details": None, "vim_id": None, "vim_name": None, "interfaces": None, diff --git a/NG-RO/osm_ng_ro/tests/sample_data.py b/NG-RO/osm_ng_ro/tests/sample_data.py index b631d8c4..e85ce35e 100644 --- a/NG-RO/osm_ng_ro/tests/sample_data.py +++ b/NG-RO/osm_ng_ro/tests/sample_data.py @@ -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, diff --git a/NG-RO/osm_ng_ro/tests/test_monitor.py b/NG-RO/osm_ng_ro/tests/test_monitor.py index cb61621a..23e6d523 100644 --- a/NG-RO/osm_ng_ro/tests/test_monitor.py +++ b/NG-RO/osm_ng_ro/tests/test_monitor.py @@ -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 index 00000000..0f88597d --- /dev/null +++ b/releasenotes/notes/keep_vim_details-266dc59a30b62519.yaml @@ -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. + -- 2.25.1