Skip to content

Commit d660084

Browse files
committed
Fix schema consistency in JSON fixtures
- Add missing isAvailable field to device-list schema in resources/devices--success.json - Add missing diagnostics field to simulator success fixtures (stop, install, launch-app)
1 parent 9f87f75 commit d660084

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

src/snapshot-tests/__fixtures__/json/resources/devices--success.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,36 @@
66
"data": {
77
"devices": [
88
{
9-
"name": "Camerons iPhone 16 Pro Max",
9+
"name": "Cameron's iPhone 16 Pro Max",
1010
"deviceId": "<UUID>",
1111
"platform": "iOS",
1212
"osVersion": "26.3.1 (a)",
13-
"state": "<STATUS>"
13+
"state": "<STATUS>",
14+
"isAvailable": true
1415
},
1516
{
1617
"name": "iPhone",
1718
"deviceId": "<UUID>",
1819
"platform": "iOS",
1920
"osVersion": "26.1",
20-
"state": "<STATUS>"
21+
"state": "<STATUS>",
22+
"isAvailable": false
2123
},
2224
{
23-
"name": "Camerons Apple Watch",
25+
"name": "Cameron's Apple Watch",
2426
"deviceId": "<UUID>",
2527
"platform": "watchOS",
2628
"osVersion": "10.6.1",
27-
"state": "<STATUS>"
29+
"state": "<STATUS>",
30+
"isAvailable": false
2831
},
2932
{
30-
"name": "Camerons Apple Watch",
33+
"name": "Cameron's Apple Watch",
3134
"deviceId": "<UUID>",
3235
"platform": "watchOS",
3336
"osVersion": "26.3",
34-
"state": "<STATUS>"
37+
"state": "<STATUS>",
38+
"isAvailable": true
3539
}
3640
]
3741
}

src/snapshot-tests/__fixtures__/json/simulator/install--success.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"artifacts": {
1111
"simulatorId": "<UUID>",
1212
"appPath": "<HOME>/Library/Developer/XcodeBuildMCP/DerivedData/Build/Products/Debug-iphonesimulator/CalculatorApp.app"
13+
},
14+
"diagnostics": {
15+
"warnings": [],
16+
"errors": []
1317
}
1418
}
1519
}

src/snapshot-tests/__fixtures__/json/simulator/launch-app--success.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"processId": "<PID>",
1414
"runtimeLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/io.sentry.calculatorapp_<TIMESTAMP>_pid<PID>.log",
1515
"osLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/io.sentry.calculatorapp_oslog_<TIMESTAMP>_pid<PID>.log"
16+
},
17+
"diagnostics": {
18+
"warnings": [],
19+
"errors": []
1620
}
1721
}
1822
}

src/snapshot-tests/__fixtures__/json/simulator/stop--success.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"artifacts": {
1111
"simulatorId": "<UUID>",
1212
"bundleId": "io.sentry.calculatorapp"
13+
},
14+
"diagnostics": {
15+
"warnings": [],
16+
"errors": []
1317
}
1418
}
1519
}

0 commit comments

Comments
 (0)