~mojo-maintainers/mojo/mojo-specs

« back to all changes in this revision

Viewing changes to charm-testing/rsyslog/manifest

  • Committer: mergebot at canonical
  • Author(s): "Thomas Cuthbert"
  • Date: 2019-03-06 06:31:00 UTC
  • mfrom: (128.1.3 mojo-specs)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20190306063100-zktswqu733k55rw8
add rsyslog charm test

Reviewed-on: https://code.launchpad.net/~tcuthbert/mojo/mojo-specs/+merge/363714
Reviewed-by: Paul Gear <paul.gear@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Collect, pre-deploy (lint, etc.) deploy and check the initial charm
 
2
# We need to clean the build directory first in case a previous build
 
3
# was using a version that is different from the upstream (e.g. git vs. charmstore)
 
4
script config=clean-build-dir
 
5
# Now collect
 
6
collect config=collect
 
7
script config=pre-deploy PHASE=initial
 
8
deploy config=deploy wait=true
 
9
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
 
10
verify config=post-deploy retry=3 sleep=60 PHASE=initial
 
11
# Now test an upgrade to the new charm if UPGRADE_CHARM is set
 
12
stop-on return-code=99 config=check-upgrade-charm UPGRADE_CHARM=${UPGRADE_CHARM}
 
13
script config=create-upgrade-collect UPGRADE_CHARM=${UPGRADE_CHARM}
 
14
collect config=collect-upgrade
 
15
script config=upgrade-charm
 
16
juju-check-wait
 
17
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
 
18
verify config=post-deploy retry=3 sleep=60 PHASE=upgrade
 
19
# Now redeploy the model, and test a deployment from scratch (with the updated charm in place)
 
20
script config=redeploy-model
 
21
script config=pre-deploy PHASE=redeploy
 
22
deploy config=deploy wait=true
 
23
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
 
24
verify config=post-deploy retry=3 sleep=60 PHASE=redeploy