added api tests
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
c5c359c658
commit
bed93466d9
15
.github/tests.sh
vendored
15
.github/tests.sh
vendored
@ -27,3 +27,18 @@ echo
|
||||
echo "Autowizard executed successful :)"
|
||||
echo
|
||||
|
||||
sleep 10
|
||||
|
||||
echo
|
||||
echo "create user via api"
|
||||
echo
|
||||
curl --fail --show-error -u info@zammad.org:Zammad -H "Content-Type: application/json" -X POST -d '{"firstname":"Bob","lastname":"Smith","email":"testuser@example.com","roles":["Customer"],"password":"some_password"}' http://localhost/api/v1/users
|
||||
|
||||
echo
|
||||
echo "create ticket"
|
||||
echo
|
||||
curl --fail --show-error -u info@zammad.org:Zammad -H "Content-Type: application/json" -X POST -d '{"title":"Help me!","group": "Users","article":{"subject":"some subject","body":"some message","type":"note","internal":false},"customer":"testuser@example.com","note": "some note"}' http://localhost/api/v1/tickets
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user