~abentley/juju-ci-tools/client-from-config-4

« back to all changes in this revision

Viewing changes to verify_landscape_bundle.py

  • Committer: Aaron Bentley
  • Date: 2016-03-18 14:47:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1324.
  • Revision ID: aaron.bentley@canonical.com-20160318144706-z7wy9c21m3psi6g5
Introduce set_model_name, update tests, check controller on bootstrap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
from __future__ import print_function
3
 
 
4
 
import logging
5
 
import sys
6
 
 
7
 
 
8
 
from utility import configure_logging
9
 
from verify_mediawiki_bundle import (
10
 
    parse_args,
11
 
    verify_services,
12
 
)
13
 
 
14
 
 
15
 
__metaclass__ = type
16
 
 
17
 
 
18
 
def assess_landscape_bundle(client):
19
 
    logging.info('Assessing landscaple bundle.')
20
 
    expected_services = ['haproxy', 'landscape-server', 'postgresql',
21
 
                         'rabbitmq-server']
22
 
    verify_services(client, expected_services, scheme='https',
23
 
                    text='Landscape', haproxy_exposed=True)
24
 
 
25
 
 
26
 
def main(argv=None):
27
 
    args = parse_args(argv)
28
 
    configure_logging(args.verbose)
29
 
    assess_landscape_bundle(args.client)
30
 
 
31
 
 
32
 
if __name__ == '__main__':
33
 
    sys.exit(main())