From ffb6f8599c11b6e58e69319a45c9cb8bddf3bf5b Mon Sep 17 00:00:00 2001 From: MICHELE GAZZETTI Date: Fri, 2 Feb 2024 07:22:39 +0000 Subject: [PATCH] Update tests Signed-off-by: MICHELE GAZZETTI --- tests/test_sunfishcore_library.py | 2 +- tests/tests_template.py | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/test_sunfishcore_library.py b/tests/test_sunfishcore_library.py index 171c9db..9fa43a5 100644 --- a/tests/test_sunfishcore_library.py +++ b/tests/test_sunfishcore_library.py @@ -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 diff --git a/tests/tests_template.py b/tests/tests_template.py index 9abb5aa..a748bc4 100644 --- a/tests/tests_template.py +++ b/tests/tests_template.py @@ -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": { @@ -240,9 +233,9 @@ "ResourceTypes": [ "ComputerSystem" ], - "OriginResources": { + "OriginResources": [{ "@odata.id": "/redfish/v1/Systems/1" - }, + }], "SubordinateResources": "True" }