From f3478e337d9a05a11a07b7dfb0cbc512dd50b5d3 Mon Sep 17 00:00:00 2001 From: Julia Bremer Date: Thu, 15 Dec 2022 15:08:38 +0100 Subject: [PATCH] Issue #11: Add mariadb setup test --- test/scenarios/keycloak/mariadb_setup.cfg | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 test/scenarios/keycloak/mariadb_setup.cfg diff --git a/test/scenarios/keycloak/mariadb_setup.cfg b/test/scenarios/keycloak/mariadb_setup.cfg new file mode 100644 index 00000000000..15162ed5953 --- /dev/null +++ b/test/scenarios/keycloak/mariadb_setup.cfg @@ -0,0 +1,48 @@ +[Global] +jenkins_description: Keycloak setup with two backups, one with keycloak and one without. SSO via keycloak is activated in the portal +logfile: autotest-keycloak-mariadb-setup.log + +kvm_server: [ENV:KVM_BUILD_SERVER] +kvm_user: [ENV:KVM_USER] +kvm_extra_label: ucs-[ENV:UCS_MINORRELEASE]-keycloak-mariadb-setup + +kvm_template: [ENV:KVM_TEMPLATE] +kvm_ucsversion: [ENV:KVM_UCSVERSION] +kvm_architecture: amd64 +kvm_memory: [ENV:KVM_MEMORY] +kvm_vcpus: [ENV:KVM_CPUS] + +kvm_dhcp: 1 +kvm_interface: eth0 + +recover: 3 + +[master] +kvm_operating_system: Others +kvm_template: ucs-joined-master +kvm_ucsversion: 5.0-2 +command1: + . utils.sh && basic_setup + . utils.sh && basic_setup_ucs_joined "[ENV:master_IP]" + . utils.sh && import_license + . utils.sh && add_tech_key_authorized_keys + . utils.sh && jenkins_updates +command2: + DEBIAN_FRONTEND=noninteractive apt-get -y install univention-mariadb + mysql -p"$(cat /etc/mysql.secret)" -e 'CREATE database keycloak;' + mysql -p"$(cat /etc/mysql.secret)" -D keycloak -e "GRANT ALL PRIVILEGES ON * TO root@172.16.1.2 IDENTIFIED BY \"$(cat /etc/mysql.secret)\";" +command3: + . utils.sh && switch_to_test_app_center || : + echo "univention" > pwdfile + univention-app install keycloak="[ENV:APPVERSION]" --username=Administrator --pwdfile=/root/pwdfile --skip --noninteractive --set kc/db/url='jdbc:mariadb://master.ucs.test:3306/keycloak' kc/db/username=root kc/db/password="$(cat /etc/mysql.secret)" + . utils.sh && assert_join + . utils.sh && install_ucs_test +command4: + . utils.sh && run_tests -s appcenter -r app_specific_test + univention-app logs keycloak || : + . utils.sh && prepare_results + LOCAL utils/utils-local.sh fetch-results [SELF_IP] [SELF] +files: + ~/ec2/scripts/activate-errata-test-scope.sh /root/ + utils/utils.sh /root/ + ~/ec2/license/license.secret /etc/