Merge "Correct default class version for static action call"

This commit is contained in:
Jenkins 2016-08-02 16:59:36 +00:00 committed by Gerrit Code Review
commit e580642c82
3 changed files with 7 additions and 7 deletions

View File

@ -51,7 +51,7 @@ class StaticActionCall(command.ShowOne):
parser.add_argument(
"--class-version",
default='',
help='Optional version of the class, otherwise version 0.0.0 is '
help='Optional version of the class, otherwise version =0 is '
'used ',
)
@ -80,7 +80,7 @@ class StaticActionCall(command.ShowOne):
"className": parsed_args.class_name,
"methodName": parsed_args.method_name,
"packageName": parsed_args.package_name or None,
"classVersion": parsed_args.class_version or '0.0.0',
"classVersion": parsed_args.class_version or '=0',
"parameters": arguments
}

View File

@ -543,7 +543,7 @@ class ShellCommandTest(ShellTest):
"className": 'class.name',
"methodName": 'method.name',
"packageName": None,
"classVersion": '0.0.0',
"classVersion": '=0',
"parameters": {}
})
@ -577,7 +577,7 @@ class ShellCommandTest(ShellTest):
"className": 'class.name',
"methodName": 'method.name',
"packageName": None,
"classVersion": '0.0.0',
"classVersion": '=0',
"parameters": {'food': 'spam', 'parrot': 'dead'}
})
@ -600,7 +600,7 @@ class ShellCommandTest(ShellTest):
"className": 'class.name',
"methodName": 'method.name',
"packageName": None,
"classVersion": '0.0.0',
"classVersion": '=0',
"parameters": {
'dictArg': {u'key1': u'value1', u'key2': u'value2'},
'listArg': [u'item1', u'item2', u'item3'],

View File

@ -223,7 +223,7 @@ def do_environment_action_get_result(mc, args):
@utils.arg("--package-name", metavar='<PACKAGE>', default='',
help='Optional FQN of the package to look for the class in')
@utils.arg("--class-version", default='',
help='Optional version of the class, otherwise version 0.0.0 is '
help='Optional version of the class, otherwise version =0 is '
'used ')
def do_static_action_call(mc, args):
"""Call static method `METHOD` of the class `CLASS` with `ARGUMENTS`.
@ -251,7 +251,7 @@ def do_static_action_call(mc, args):
"className": args.class_name,
"methodName": args.method_name,
"packageName": args.package_name or None,
"classVersion": args.class_version or '0.0.0',
"classVersion": args.class_version or '=0',
"parameters": arguments
}