From f5616eae3512e50cc642112ed165fafbdad569c1 Mon Sep 17 00:00:00 2001 From: yuvirani Date: Thu, 6 May 2021 11:43:34 +0530 Subject: [PATCH] Increase coverage --- test/test_oneview.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_oneview.py b/test/test_oneview.py index 939d0517..beca3df9 100644 --- a/test/test_oneview.py +++ b/test/test_oneview.py @@ -37,6 +37,7 @@ SPKeys, ServerProfileMerger, ServerProfileReplaceNamesByUris, + LIGMerger, sort_by_uplink_set_location, _sort_by_keys, _str_sorted, @@ -1404,6 +1405,12 @@ def test_compare_lig_empty_list_and_none(self): } assert not compare_lig(dict1, dict2) + def test_merge_when_having_diff_uplink_set_attributes(self): + merged_data = LIGMerger().merge_data(self.DICT_UPLINK_SET1, self.DICT_UPLINK_SET2) + + expected_connections = self.DICT_UPLINK_SET2['uplinkSets'] + assert merged_data['uplinkSets'] == expected_connections + def test_resource_compare_with_double_level_list(self): dict1 = {list: [ [1, 2, 3],