~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to assess_status_output.py

  • Committer: Aaron Bentley
  • Date: 2016-03-18 03:02:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1323.
  • Revision ID: aaron.bentley@canonical.com-20160318030201-ki8wfpaeawgh9oqz
assess_cs_staging pokes state server via admin model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from deploy_stack import (
7
7
    BootstrapManager,
8
8
)
9
 
from utility import (
10
 
    add_basic_testing_arguments,
11
 
    local_charm_path,
12
 
)
 
9
from utility import add_basic_testing_arguments
13
10
 
14
11
 
15
12
__metaclass__ = type
108
105
    :param client: python juju client.
109
106
    :type client: jujupy.EnvJujuClient
110
107
    """
111
 
    status = StatusTester.from_text(client.get_status(60, True, False,
 
108
    status = StatusTester.from_text(client.get_status(60, True,
112
109
                                                      "--format=yaml"),
113
110
                                    "yaml")
114
111
    run_complete_status(client, status)
115
 
    status = StatusTester.from_text(client.get_status(60, True, False,
 
112
    status = StatusTester.from_text(client.get_status(60, True,
116
113
                                                      "--format=json"),
117
114
                                    "json")
118
115
    run_complete_status(client, status)
119
 
    status = StatusTester.from_text(client.get_status(60, True, False,
 
116
    status = StatusTester.from_text(client.get_status(60, True,
120
117
                                                      "--format=tabular"),
121
118
                                    "tabular")
122
119
    run_reduced_status(client, status)
138
135
    client = bs_manager.client
139
136
    with bs_manager.booted_context(args.upload_tools):
140
137
        client.get_status(60)
141
 
        charm = local_charm_path(
142
 
            charm='statusstresser', juju_ver=client.version, series='trusty')
143
 
        client.deploy(charm)
 
138
        client.juju("deploy", ('local:trusty/statusstresser',))
144
139
        client.wait_for_started()
 
140
 
145
141
        test_status_set_on_install(client)
146
142
 
147
143