More massive workstuff for completion :P
This commit is contained in:
parent
7a8acf27a7
commit
3385118b14
20 changed files with 325 additions and 354 deletions
5
api-test/test-files/api-test.sh
Normal file
5
api-test/test-files/api-test.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
cat test.json | curl --json @- http://localhost:1234/api/info
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
2
api-test/test-files/docker-down.sh
Normal file
2
api-test/test-files/docker-down.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
docker stop do_integration_test
|
||||
docker rm do_integration_test
|
||||
4
api-test/test-files/docker-up.sh
Normal file
4
api-test/test-files/docker-up.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
docker build . -t quizterm:1
|
||||
docker run --name do_integration_test -d -p 4321:1234 quizterm:1
|
||||
|
||||
sleep 2
|
||||
8
api-test/test-files/test.json
Normal file
8
api-test/test-files/test.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"answers":
|
||||
[
|
||||
{"question" : 14, "answer": "what is the meaning of the question that is number what is the meaning of the question that is numberwhat is the meaning of the question that is numberwhat is the meaning of the question that is number"}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue