From 98fd8435c735f38906479a328c6341f5bace324e Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Mon, 9 Jan 2023 19:29:18 +0100 Subject: test: add test for /start endpoint (#23) In commit 1c79728984af was endpoint '/start' added, now it is tested. Signed-off-by: Geert Stappers --- test/integ-test/expected-results/start.txt | 9 +++++++++ test/integ-test/integ_test.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 test/integ-test/expected-results/start.txt 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")] -- cgit v1.2.3