Skip to content

Commit

Permalink
fix test cases for list resource properties
Browse files Browse the repository at this point in the history
Change-Id: I529bf362e38c4ec5de5c7e2e5e999930dab736aa
  • Loading branch information
AnishReddyRavula committed Mar 19, 2024
1 parent 14d8182 commit 380fb2f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions blazar/tests/plugins/networks/test_network_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,11 +1036,11 @@ def test_list_resource_properties(self):

# Expecting a list of (Reservation, Allocation)
self.db_list_resource_properties.return_value = [
('prop1', False, 'aaa'),
('prop1', False, 'bbb'),
('prop2', False, 'aaa'),
('prop2', False, 'aaa'),
('prop3', True, 'aaa')
('prop1', False, 'aaa', False),
('prop1', False, 'bbb', False),
('prop2', False, 'aaa', False),
('prop2', False, 'aaa', False),
('prop3', True, 'aaa', False)
]

expected = [
Expand All @@ -1063,10 +1063,10 @@ def test_list_resource_properties_with_detail(self):

# Expecting a list of (Reservation, Allocation)
self.db_list_resource_properties.return_value = [
('prop1', False, 'aaa'),
('prop1', False, 'bbb'),
('prop2', False, 'ccc'),
('prop3', True, 'aaa')
('prop1', False, 'aaa', False),
('prop1', False, 'bbb', False),
('prop2', False, 'ccc', False),
('prop3', True, 'aaa', False)
]

expected = [
Expand Down
18 changes: 9 additions & 9 deletions blazar/tests/plugins/oshosts/test_physical_host_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2549,11 +2549,11 @@ def test_list_resource_properties(self):

# Expecting a list of (Reservation, Allocation)
self.db_list_resource_properties.return_value = [
('prop1', False, 'aaa'),
('prop1', False, 'bbb'),
('prop2', False, 'aaa'),
('prop2', False, 'aaa'),
('prop3', True, 'aaa')
('prop1', False, 'aaa', False),
('prop1', False, 'bbb', False),
('prop2', False, 'aaa', False),
('prop2', False, 'aaa', False),
('prop3', True, 'aaa', False)
]

expected = [
Expand All @@ -2577,10 +2577,10 @@ def test_list_resource_properties_with_detail(self):

# Expecting a list of (Reservation, Allocation)
self.db_list_resource_properties.return_value = [
('prop1', False, 'aaa'),
('prop1', False, 'bbb'),
('prop2', False, 'ccc'),
('prop3', True, 'aaa')
('prop1', False, 'aaa', False),
('prop1', False, 'bbb', False),
('prop2', False, 'ccc', False),
('prop3', True, 'aaa', False)
]

expected = [
Expand Down

0 comments on commit 380fb2f

Please sign in to comment.