add some test scripts
This commit is contained in:
parent
2d8287cf9b
commit
436df275e2
2 changed files with 20 additions and 0 deletions
10
tests/force_button_off.sh
Executable file
10
tests/force_button_off.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
source "test-env.sh"
|
||||
REQUEST=${1:-"./button_force_off.json"}
|
||||
TARGET=${test_base_url}${2:-/bibutton}
|
||||
echo "##########################################"
|
||||
echo "# sending post request to ${TARGET} with :"
|
||||
echo "# ${REQUEST}"
|
||||
echo "##########################################"
|
||||
curl -i -u "${leds_user}:${leds_password}" --request POST --data "@${REQUEST}" --header "Content-Type: application/json" ${TARGET}
|
||||
echo
|
||||
10
tests/force_button_on.sh
Executable file
10
tests/force_button_on.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
source "test-env.sh"
|
||||
REQUEST=${1:-"./button_force_on.json"}
|
||||
TARGET=${test_base_url}${2:-/bibutton}
|
||||
echo "##########################################"
|
||||
echo "# sending post request to ${TARGET} with :"
|
||||
echo "# ${REQUEST}"
|
||||
echo "##########################################"
|
||||
curl -i -u "${leds_user}:${leds_password}" --request POST --data "@${REQUEST}" --header "Content-Type: application/json" ${TARGET}
|
||||
echo
|
||||
Loading…
Add table
Add a link
Reference in a new issue