aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Stappers <stappers@stappers.it>2023-01-09 19:29:18 +0100
committerGitHub <noreply@github.com>2023-01-09 10:29:18 -0800
commit98fd8435c735f38906479a328c6341f5bace324e (patch)
treeafdb6edb67baf9a4a609c334479947a21f457095
parentd20143854cb65e86f39c49a8109fd03612c2044f (diff)
test: add test for /start endpoint (#23)
In commit 1c79728984af was endpoint '/start' added, now it is tested. Signed-off-by: Geert Stappers <stappers@stappers.it>
-rw-r--r--test/integ-test/expected-results/start.txt9
-rwxr-xr-xtest/integ-test/integ_test.py1
2 files changed, 10 insertions, 0 deletions
diff --git a/test/integ-test/expected-results/start.txt b/test/integ-test/expected-results/start.txt
new file mode 100644
index 0000000..245ade5
--- /dev/null
+++ b/test/integ-test/expected-results/start.txt
@@ -0,0 +1,9 @@
+#!ipxe
+echo Shoelaces starts polling
+chain --autofree --replace \
+ http://localhost:18888/poll/1/${netX/mac:hexhyp}
+#
+#
+# Do
+# curl http://localhost:18888/poll/1/06-66-de-ad-be-ef
+# to get an idea about what the iPXE client will receive.
diff --git a/test/integ-test/integ_test.py b/test/integ-test/integ_test.py
index d830e6b..188017d 100755
--- a/test/integ-test/integ_test.py
+++ b/test/integ-test/integ_test.py
@@ -106,6 +106,7 @@ REQUEST_RESPONSE_PAIRS = [("/static/", "static.html"),
("/configs/static/", "configs-static-default.txt"),
("/configs/static/rc.local-bootstrap",
"rc.local-bootstrap"),
+ ("/start", "start.txt"),
("/ipxemenu", "ipxemenu.txt")]
nihil fit ex nihilo