Fixing grammatical errors in the Client

Change-Id: Ie42486b33683a72337d11f073f3b272c671ebd94
This commit is contained in:
Anand Shanmugam 2016-08-16 11:46:11 -07:00
parent 103959e2a3
commit b47062ec3c
2 changed files with 11 additions and 11 deletions
cloudpulseclient

@ -545,7 +545,7 @@ class OpenStackCloudPulseShell(object):
"""Prints arguments for bash-completion. """Prints arguments for bash-completion.
Prints all of the commands and options to stdout so that the Prints all of the commands and options to stdout so that the
cloudpuls.bash_completion script doesn't have to hard code them. cloudpulse.bash_completion script doesn't have to hard code them.
""" """
commands = set() commands = set()
options = set() options = set()

@ -25,12 +25,12 @@ def _print_list_field(field):
dest='failed', dest='failed',
action="store_true", action="store_true",
default=False, default=False,
help='Display only failed tests.') help='Display only test results that have failed.')
@utils.arg('--period', @utils.arg('--period',
metavar='<period>', metavar='<period>',
help='List all tests in the last x minutes.') help='List tests results that have been run in the last x minutes.')
def do_result(cs, args): def do_result(cs, args):
"""List all the tests""" """List all the test results"""
search_opts = { search_opts = {
'failed': args.failed, 'failed': args.failed,
'period': args.period, 'period': args.period,
@ -44,7 +44,7 @@ def do_result(cs, args):
@utils.arg('--name', @utils.arg('--name',
metavar='<name>', metavar='<name>',
help='Name of the healthcheck to run') help='Name of the test to run')
@utils.arg('--all-tests', @utils.arg('--all-tests',
metavar='<all_tests>', metavar='<all_tests>',
action='store_const', action='store_const',
@ -59,9 +59,9 @@ def do_result(cs, args):
metavar='<all_operator_tests>', metavar='<all_operator_tests>',
action='store_const', action='store_const',
const='all_operator_tests', const='all_operator_tests',
help="Run all endpoint tests") help="Run all operator tests")
def do_run(cs, args): def do_run(cs, args):
"""Run new test""" """Run a new manual test"""
if not any([args.name, args.all_operator_tests, if not any([args.name, args.all_operator_tests,
args.all_tests, args.all_endpoint_tests]): args.all_tests, args.all_endpoint_tests]):
raise exceptions.CommandError( raise exceptions.CommandError(
@ -77,9 +77,9 @@ def do_run(cs, args):
@utils.arg('cpulse', @utils.arg('cpulse',
metavar='<cpulse>', metavar='<cpulse>',
nargs='+', nargs='+',
help='ID or name of the (cpulse)s to show.') help='Id of the test result to show.')
def do_show(cs, args): def do_show(cs, args):
"""Show the results of the test""" """Show the detailed result of a test"""
for id in args.cpulse: for id in args.cpulse:
healthcheck = cs.healthcheck.get(id) healthcheck = cs.healthcheck.get(id)
utils.print_dict(healthcheck._info) utils.print_dict(healthcheck._info)
@ -95,9 +95,9 @@ def do_test_list(cs, args):
@utils.arg('cpulse', @utils.arg('cpulse',
metavar='<cpulse>', metavar='<cpulse>',
nargs='+', nargs='+',
help='ID or name of the (cpulse)s to delete.') help='Id of the test result to delete.')
def do_delete(cs, args): def do_delete(cs, args):
"""Delete the test""" """Delete the test result"""
for id in args.cpulse: for id in args.cpulse:
try: try:
cs.healthcheck.delete(id) cs.healthcheck.delete(id)