copy code from my personal git repo
This commit is contained in:
parent
24d6c84170
commit
f9f509c619
28 changed files with 787 additions and 1 deletions
10
tests/send_one_request.sh
Executable file
10
tests/send_one_request.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
source "test-env.sh"
|
||||
REQUEST=${1:-"./leds_64_values.json"}
|
||||
TARGET=${test_base_url}${2:-/bibleds}
|
||||
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