From 028f6f4f5d672bf39913b7af8c8a5525e20a1340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 28 Feb 2020 00:38:52 +0100 Subject: [PATCH] added autowizard as test (#139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added autowizard as test Signed-off-by: André Bauer * fix filename Signed-off-by: André Bauer * removed workflow needs Signed-off-by: André Bauer * added another sleep to see some more logs Signed-off-by: André Bauer * remove sleep Signed-off-by: André Bauer --- .github/auto_wizard.json | 31 +++++++++++++++++++++++++++++++ .github/tests.sh | 9 +++++++++ .github/workflows/ci.yaml | 6 ++---- 3 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 .github/auto_wizard.json diff --git a/.github/auto_wizard.json b/.github/auto_wizard.json new file mode 100644 index 0000000..90852bb --- /dev/null +++ b/.github/auto_wizard.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/.github/tests.sh b/.github/tests.sh index 728e5bb..e3d44fd 100755 --- a/.github/tests.sh +++ b/.github/tests.sh @@ -18,3 +18,12 @@ sleep 30 echo echo "Success - Zammad is up :)" echo +echo "Execute autowizard..." +echo + +curl -I --silent --fail --show-error "http://localhost/#getting_started/auto_wizard/docker_compose_token" > /dev/null + +echo +echo "Autowizard executed successful" +echo + diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fecb75c..6c4ec94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,6 @@ jobs: lint-docker-files: runs-on: ubuntu-latest - needs: lint-bash-scripts steps: - name: Checkout uses: actions/checkout@v1 @@ -36,7 +35,6 @@ jobs: test-docker-compose: timeout-minutes: 10 runs-on: ubuntu-latest - needs: lint-docker-files steps: - name: Checkout uses: actions/checkout@v1 @@ -44,7 +42,7 @@ jobs: run: docker-compose pull - name: run docker-compose up 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 run: .github/tests.sh - -