Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fybJenkins committed Jul 13, 2023
1 parent e2607fc commit f90486f
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
6 changes: 6 additions & 0 deletions tests/payloads/bmcapi/servers/servers_action_reserve.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
}
]
}
},
"storageConfiguration": {
"rootPartition": {
"raid": "RAID_0",
"size": 5
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions tests/payloads/bmcapi/servers/servers_get.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@
}
]
}
},
"storageConfiguration": {
"rootPartition": {
"raid": "RAID_0",
"size": 5
}
}
}
]
Expand Down
6 changes: 6 additions & 0 deletions tests/payloads/bmcapi/servers/servers_get_by_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@
}
]
}
},
"storageConfiguration": {
"rootPartition": {
"raid": "RAID_0",
"size": 5
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions tests/payloads/bmcapi/servers/servers_patch_by_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@
}
]
}
},
"storageConfiguration": {
"rootPartition": {
"raid": "RAID_0",
"size": 5
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions tests/payloads/bmcapi/servers/servers_put_tags_by_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@
}
]
}
},
"storageConfiguration": {
"rootPartition": {
"raid": "RAID_0",
"size": 5
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/payloads/locationapi/locations_get.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"request": {
"method": "GET",
"path": "/locations",
"path": "/location-api/v1/locations",
"queryStringParameters": [
{
"name": "location",
Expand Down
5 changes: 3 additions & 2 deletions tests/pnap_location_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def test_get_locations(self):

# Changing values to be enums
opts['location'] = LocationEnum(opts['location'])
opts['productCategory'] = ProductCategoryEnum(opts['productCategory'])
opts['product_category'] = ProductCategoryEnum(opts['productCategory'])
del opts['productCategory']

result = api_instance.locations_get(**opts)
result = api_instance.get_locations(**opts)

self.assertEqual(response['body'][0], model_to_dict(result[0]))

Expand Down

0 comments on commit f90486f

Please sign in to comment.