Commit 9f91bb2
committed
Fix apps tests: add region flag to m run and handle new org format
Two fixes for apps v2 integration tests:
1. Add -r flag to 'fly m run' commands
Without specifying a region, the command prompts interactively for
region selection, which fails in CI with "Error: prompt: non interactive".
Fixed by adding: -r %s (f.PrimaryRegion())
Affected:
- TestAppsV2ConfigSave_ProcessGroups (3 commands)
- TestAppsV2ConfigSave_OneMachineNoAppConfig (1 command)
2. Handle new org list JSON format in verifyTestOrgExists
The API now returns: {"personal": "flyctl-ci-preflight"}
instead of: {"flyctl-ci-preflight": "..."}
Updated to check both keys (old format) and values (new format)
to find the org slug.1 parent ca2bf5a commit 9f91bb2
File tree
2 files changed
+20
-5
lines changed- test/preflight
- testlib
2 files changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
283 | 298 | | |
284 | 299 | | |
285 | 300 | | |
| |||
0 commit comments