This patch fixes the Robot Basic 25 after NBI patch 12071.
Change-Id: Iec98a7b9b61f2c8f59fafaacaf586669b1eaa10d
Signed-off-by: aticig <gulsum.atici@canonical.com>
if base_folder.get("pkg-dir"):
artifact_path = "{}/{}/{}/{}".format(
- base_folder["folder"] + extension,
+ base_folder["folder"].split(":")[0] + extension,
base_folder["pkg-dir"],
"charms"
if charm_type in ("native_charm", "lxc_proxy_charm", "k8s_proxy_charm")
else:
# For SOL004 packages
artifact_path = "{}/Scripts/{}/{}".format(
- base_folder["folder"] + extension,
+ base_folder["folder"].split(":")[0] + extension,
"charms"
if charm_type in ("native_charm", "lxc_proxy_charm", "k8s_proxy_charm")
else "helm-charts",
# There is new revision of VNFD, update operation is required
current_vnfd_path = vnfd_id + ":" + str(current_vnf_revision)
- latest_vnfd_path = vnfd_id
+ latest_vnfd_path = vnfd_id + ":" + str(latest_vnfd_revision)
step = "Removing the VNFD packages if they exist in the local path"
shutil.rmtree(self.fs.path + current_vnfd_path, ignore_errors=True)
base_folder,
charm_name,
charm_type,
+ latest_vnfd_revision,
)
)
mock_charm_hash.assert_called_with(
"7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:1/hackfest_3charmed_vnfd/charms/simple",
- "7637bcf8-cf14-42dc-ad70-c66fcf1e6e77/hackfest_3charmed_vnfd/charms/simple",
+ "7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:3/hackfest_3charmed_vnfd/charms/simple",
)
self.assertEqual(fs.sync.call_count, 2)
mock_charm_hash.assert_called_with(
"7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:1/hackfest_3charmed_vnfd/charms/simple",
- "7637bcf8-cf14-42dc-ad70-c66fcf1e6e77/hackfest_3charmed_vnfd/charms/simple",
+ "7637bcf8-cf14-42dc-ad70-c66fcf1e6e77:3/hackfest_3charmed_vnfd/charms/simple",
)
self.assertEqual(fs.sync.call_count, 2)