From bed93466d9267c674fd532f365f7f8c6bdc79a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Thu, 12 Mar 2020 23:40:38 +0100 Subject: [PATCH] added api tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Bauer --- .github/tests.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/tests.sh b/.github/tests.sh index 0999ae0..33fb5c5 100755 --- a/.github/tests.sh +++ b/.github/tests.sh @@ -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 + + + +