Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: MICHELE GAZZETTI <Michele.Gazzetti1@ibm.com>
  • Loading branch information
mgazz committed Feb 2, 2024
1 parent e7809b5 commit ffb6f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/test_sunfishcore_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_put(self):
# Exception put element that doesnt exists
def test_put_exception(self):
payload = tests_template.test_update_exception
with pytest.raises(ResourceNotFound):
with pytest.raises(PropertyNotFound):
self.core.replace_object(payload)

# Patch
Expand Down
11 changes: 2 additions & 9 deletions tests/tests_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@

test_update_exception = {
"@odata.id": "/redfish/v1/Systems/-1",
"@odata.type": "#ComputerSystem.1.00.0.ComputerSystem",
"Id": "1234",
"Name": "Compute Node 1234",
"SystemType": "Physical",
"Manufacturer": "Manufacturer Name",
"Model": "Model Name",
"SKU": "",
"Memory": {
"TotalSystemMemoryGB": 12,
"Status": {
Expand Down Expand Up @@ -240,9 +233,9 @@
"ResourceTypes": [
"ComputerSystem"
],
"OriginResources": {
"OriginResources": [{
"@odata.id": "/redfish/v1/Systems/1"
},
}],
"SubordinateResources": "True"
}

Expand Down

0 comments on commit ffb6f85

Please sign in to comment.