aboutsummaryrefslogtreecommitdiffstats
path: root/hdv/redfish/test/mock_server.json
diff options
context:
space:
mode:
authorShubham Mishra <shivam828787@gmail.com>2020-06-29 18:19:05 +0530
committerShubham Mishra <shivam828787@gmail.com>2020-07-14 21:34:11 +0530
commit0ca69e673a3c49acbb02b19df097bdf57f263a47 (patch)
treef439133e18fd556973de67817d188f37f3637ede /hdv/redfish/test/mock_server.json
parent5ea4ca492b80712a822774cf50ee9864cbbb37ea (diff)
add unittest, create_real_url() function
Change-Id: Id89b7dc6050746c677a361d8d2e66e4c5f329f1d Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Diffstat (limited to 'hdv/redfish/test/mock_server.json')
-rw-r--r--hdv/redfish/test/mock_server.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/hdv/redfish/test/mock_server.json b/hdv/redfish/test/mock_server.json
new file mode 100644
index 0000000..acf7e9a
--- /dev/null
+++ b/hdv/redfish/test/mock_server.json
@@ -0,0 +1,50 @@
+{
+ "/redfish/v1/Systems/": {
+ "return_code": 200,
+ "return_value": {
+ "@odata.id": "/redfish/v1/Systems",
+ "@odata.type": "#ComputerSystemCollection.ComputerSystemCollection",
+ "Members": [
+ {
+ "@odata.id": "/redfish/v1/Systems/437XR1138R2"
+ }
+ ],
+ "Members@odata.count": 1,
+ "Name": "Computer System Collection"
+ }
+ },
+ "/redfish/v1/Chassis/": {
+ "return_code": 200,
+ "return_value": {
+ "@odata.id": "/redfish/v1/Chassis",
+ "@odata.type": "#ChassisCollection.ChassisCollection",
+ "Members": [
+ {
+ "@odata.id": "/redfish/v1/Chassis/1U"
+ }
+ ],
+ "Members@odata.count": 1,
+ "Name": "Chassis Collection"
+ }
+ },
+ "/redfish/v1/Systems/437XR1138R2/Processors/": {
+ "return_code": 200,
+ "return_value": {
+ "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors",
+ "@odata.type": "#ProcessorCollection.ProcessorCollection",
+ "Members": [
+ {
+ "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1"
+ },
+ {
+ "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2"
+ },
+ {
+ "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1"
+ }
+ ],
+ "Members@odata.count": 3,
+ "Name": "Processors Collection"
+ }
+ }
+} \ No newline at end of file