added autowizard as test

Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
André Bauer 2020-02-28 00:02:06 +01:00
parent 20b99bcaa1
commit d1a516a7ed
3 changed files with 38 additions and 2 deletions

31
.github/ auto_wizard.json vendored Normal file
View File

@ -0,0 +1,31 @@
{
"Token": "docker_compose_token",
"TextModuleLocale": {
"Locale": "en-us"
},
"Users": [
{
"login": "info@zammad.org",
"firstname": "Zam",
"lastname": "Mad",
"email": "info@zammad.org",
"organization": "Zammad",
"password": "Zammad"
}
],
"Settings": [
{
"name": "product_name",
"value": "Zammad Service Desk"
},
{
"name": "system_online_service",
"value": true
}
],
"Organizations": [
{
"name": "Zammad"
}
]
}

5
.github/tests.sh vendored
View File

@ -18,3 +18,8 @@ sleep 30
echo echo
echo "Success - Zammad is up :)" echo "Success - Zammad is up :)"
echo echo
echo "Execute autowizard..."
curl -I --silent --fail --show-error "http://localhost/#getting_started/auto_wizard/docker_compose_token" > /dev/null
echo "autowizard executed successful"

View File

@ -44,7 +44,7 @@ jobs:
run: docker-compose pull run: docker-compose pull
- name: run docker-compose up - name: run docker-compose up
run: docker-compose up --detach run: docker-compose up --detach
- name: add autowizard file
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
- name: run tests - name: run tests
run: .github/tests.sh run: .github/tests.sh