Skip to content

Commit

Permalink
Replace gitlab charm with mediawiki for caas testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ycliuhw committed May 6, 2019
1 parent 7209949 commit f495552
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptancetests/assess_caas_deploy_charms.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def assess_caas_charm_deployment(caas_client):
)

k8s_model.deploy(
charm="cs:~juju/gitlab-k8s-0",
charm="cs:~juju/mediawiki-k8s-3",
config='juju-external-hostname={}'.format(external_hostname),
)

Expand All @@ -93,8 +93,8 @@ def assess_caas_charm_deployment(caas_client):
storage='database=100M,{}'.format(mariadb_storage_pool_name),
)

k8s_model.juju('relate', ('mariadb-k8s', 'gitlab-k8s'))
k8s_model.juju('expose', ('gitlab-k8s',))
k8s_model.juju('relate', ('mediawiki-k8s:db', 'mariadb-k8s:server'))
k8s_model.juju('expose', ('mediawiki-k8s',))
k8s_model.wait_for_workloads(timeout=3600)

def success_hook():
Expand All @@ -104,7 +104,7 @@ def fail_hook():
success_hook()
log.info(caas_client.kubectl('get', 'pv,pvc', '-n', model_name))

url = '{}://{}/{}'.format('http', external_hostname, 'gitlab-k8s')
url = '{}://{}/{}'.format('http', external_hostname, 'mediawiki-k8s')
check_app_healthy(
url, timeout=1800,
success_hook=success_hook,
Expand Down

0 comments on commit f495552

Please sign in to comment.