Fix Bug 1910 Enabling stage-test failing by tox results 51/11751/4
authoraticig <gulsum.atici@canonical.com>
Fri, 11 Mar 2022 12:03:55 +0000 (15:03 +0300)
committeraticig <gulsum.atici@canonical.com>
Thu, 17 Mar 2022 18:24:01 +0000 (19:24 +0100)
Change-Id: I9d8fd2104916a1b16fccb68d21126891ac512b9f
Signed-off-by: aticig <gulsum.atici@canonical.com>
NG-RO/osm_ng_ro/ns.py
RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py
devops-stages/stage-test.sh
releasenotes/notes/fix_bug_1910-000745f344b28e5b.yaml [new file with mode: 0644]

index 8e2f827..b6524cc 100644 (file)
@@ -1156,7 +1156,7 @@ class Ns(object):
         if item in ("net", "vdu"):
             if vnfr is None:
                 db_record = "nsrs:{}:{}".format(nsr_id, db_path)
-                target_list = indata.get("ns", []).get(db_path, []) 
+                target_list = indata.get("ns", []).get(db_path, [])
                 existing_list = db_nsr.get(db_path, [])
             else:
                 db_record = "vnfrs:{}:{}".format(vnfr_id, db_path)
index 5a58cf9..6756ef4 100644 (file)
@@ -6230,7 +6230,7 @@ class vimconnector(vimconn.VimConnector):
                     )
                     return None
 
-                deviceId = hex(host_pci_dev.deviceId % 2 ** 16).lstrip("0x")
+                deviceId = hex(host_pci_dev.deviceId % 2**16).lstrip("0x")
                 backing = vim.VirtualPCIPassthroughDeviceBackingInfo(
                     deviceId=deviceId,
                     id=host_pci_dev.id,
@@ -7493,13 +7493,10 @@ if [ "$1" = "precustomization" ];then
 
                 for device in devices:
                     if type(device) is vim.vm.device.VirtualDisk:
-                        if (
-                            isinstance(
-                                device.backing,
-                                vim.vm.device.VirtualDisk.FlatVer2BackingInfo,
-                            )
-                            and hasattr(device.backing, "fileName")
-                        ):
+                        if isinstance(
+                            device.backing,
+                            vim.vm.device.VirtualDisk.FlatVer2BackingInfo,
+                        ) and hasattr(device.backing, "fileName"):
                             disk_info["full_path"] = device.backing.fileName
                             disk_info["datastore"] = device.backing.datastore
                             disk_info["capacityKB"] = device.capacityInKB
index 2b39c48..278b33b 100755 (executable)
@@ -14,5 +14,4 @@
 # limitations under the License.
 
 echo launching tox
-OUTPUT=$(TOX_PARALLEL_NO_SPINNER=1 tox --parallel=auto)
-printf '%s\n' "$OUTPUT"
+tox --parallel=auto
diff --git a/releasenotes/notes/fix_bug_1910-000745f344b28e5b.yaml b/releasenotes/notes/fix_bug_1910-000745f344b28e5b.yaml
new file mode 100644 (file)
index 0000000..c1b4c40
--- /dev/null
@@ -0,0 +1,22 @@
+#######################################################################################
+# 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:
+  - |
+    Fixing Bug 1910: This fix allows stage tests to fail based on tox results.
+    By this way, Jenkins builds will not be successful unless all tests are passed.
+