Skip to content
Snippets Groups Projects
Verified Commit fb695973 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

fix some copy-paste mistakes, add tests for Rocket.Chat to CI tests

parent 49203d9c
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,30 @@ behave-nextcloud:
- openappstack/**/*
extends: .ssh_setup
behave-rocketchat:
stage: integration-test
script:
# Wait until flux creates the Rocket.Chat HelmRelease.
- ssh root@$ADDRESS '/bin/bash -c "while true; do kubectl get hr -n oas-apps rocketchat; if [ \$? -eq 0 ]; then break; fi; sleep 20; done"'
# Wait until Rocket.Chat is ready.
- ssh root@$ADDRESS '/bin/bash -c "kubectl wait -n oas-apps hr/rocketchat --for condition=Released --timeout=20m"'
# Run the behave tests for Rocket.Chat.
- python3 -m openappstack $HOSTNAME test --behave-headless --behave-tags rocketchat || python3 -m openappstack $HOSTNAME test --behave-headless --behave-rerun-failing --behave-tags rocketchat
artifacts:
paths:
- test/behave/screenshots/
expire_in: 1 month
when: on_failure
retry: 2
only:
changes:
- .gitlab-ci.yml
- ansible/**/*
- flux/**/*
- test/**/*
- openappstack/**/*
extends: .ssh_setup
behave-grafana:
stage: integration-test
script:
......
---
- name: Create Kubernetes secret with nextcloud settings
- name: Create Kubernetes secret with Rocket.Chat settings
tags:
- config
- flux
......
......@@ -10,8 +10,8 @@ extraEnv: |
value: "{{ rocketchat_admin_password }}"
- name: ADMIN_EMAIL
value: "{{ admin_email }}"
# Set setup wizard to completed so the setup wizard that allows you to
# create a different admin user get skipped.
# Set setup wizard to completed. The setup wizard, that allows you to
# create a different admin user, gets skipped.
- name: OVERWRITE_SETTING_Show_Setup_Wizard
value: completed
......@@ -31,10 +31,9 @@ ingress:
- "chat.{{ domain }}"
secretName: oas-rocketchat
# Use 2 GB of storage for NC storage (maybe make configurable later?)
persistence:
enabled: true
size: 2Gi
size: 1Gi
mongodb:
mongodbRootPassword: "{{ rocketchat_mongodb_root_password }}"
......
......@@ -105,6 +105,7 @@ def test_cert_validation(host):
# Check nextcloud cert
assert valid_cert('files.{0}'.format(domain))
assert valid_cert('chat.{0}'.format(domain))
if __name__ == "__main__":
......
......@@ -32,7 +32,7 @@ def test_helmreleases():
"""
expected_releases = {
'oas': ['cert-manager', 'ingress', 'local-storage', 'monitoring'],
'oas-apps': ['nextcloud']
'oas-apps': ['nextcloud', 'rocketchat']
}
config.load_kube_config()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment