test
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
0ced92d060
commit
7f96c8890b
24
.github/tests.sh
vendored
24
.github/tests.sh
vendored
@ -32,20 +32,20 @@ echo
|
||||
echo "Fill db with some random data"
|
||||
docker exec zammad-docker-compose_zammad-railsserver_1 rails r "FillDB.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)"
|
||||
|
||||
echo
|
||||
echo "create user via api"
|
||||
echo
|
||||
curl --silent --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 user via api"
|
||||
# echo
|
||||
# curl --silent --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 "search user"
|
||||
echo
|
||||
curl --silent --fail --show-error -u info@zammad.org:Zammad 'http://localhost/api/v1/users/search?query=Smith&limit=10&expand=true'
|
||||
# echo
|
||||
# echo "search user"
|
||||
# echo
|
||||
# curl --silent --fail --show-error -u info@zammad.org:Zammad 'http://localhost/api/v1/users/search?query=Smith&limit=10&expand=true'
|
||||
|
||||
echo
|
||||
echo "create ticket"
|
||||
echo
|
||||
curl --silent --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'
|
||||
# echo
|
||||
# echo "create ticket"
|
||||
# echo
|
||||
# curl --silent --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