Skip to content

Commit

Permalink
Issue #11: Add mariadb setup test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbremer committed Dec 15, 2022
1 parent 413c02d commit f3478e3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions test/scenarios/keycloak/mariadb_setup.cfg
Original file line number Diff line number Diff line change
@@ -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 [email protected] 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/

0 comments on commit f3478e3

Please sign in to comment.