File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 50
50
# used to fail early, in case octoprint first starts and then crashes
51
51
with octoprint_running: # type: ignore[union-attr]
52
52
with subtest("Check for web interface"):
53
- machine.wait_until_succeeds("curl -s localhost:5000")
53
+ machine.wait_until_succeeds("curl -s -4 localhost:5000")
54
+ machine.wait_until_succeeds("curl -s -6 localhost:5000")
54
55
55
- with subtest("Check API"):
56
- version = json.loads(machine.succeed(curl_cmd + "localhost:5000/api/version"))
57
- server = json.loads(machine.succeed(curl_cmd + "localhost:5000/api/server"))
56
+ with subtest("Check API IPv4"):
57
+ version = json.loads(machine.succeed(curl_cmd + "-4 localhost:5000/api/version"))
58
+ server = json.loads(machine.succeed(curl_cmd + "-4 localhost:5000/api/server"))
59
+ assert version["server"] == str("${ pkgs . octoprint . version } ")
60
+ assert server["safemode"] == None
61
+
62
+ with subtest("Check API IPv6"):
63
+ version = json.loads(machine.succeed(curl_cmd + "-6 localhost:5000/api/version"))
64
+ server = json.loads(machine.succeed(curl_cmd + "-6 localhost:5000/api/server"))
58
65
assert version["server"] == str("${ pkgs . octoprint . version } ")
59
66
assert server["safemode"] == None
60
67
'' ;
You can’t perform that action at this time.
0 commit comments