diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-05-07 14:14:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-05-07 14:14:43 +0000 |
commit | e4c1d703a7784fe8acea8477fc57fb2438201c33 (patch) | |
tree | 4869325ccf6807b8ca65f99674e013a6e49b232f /testapi/testapi-client/testapiclient/cli/results.py | |
parent | bdd692287fc028295ef5763c48d2218d6c7e06cb (diff) | |
parent | a2a855bc1b66284addaead40b23f43a574de336d (diff) |
Merge "Add result model to the client"
Diffstat (limited to 'testapi/testapi-client/testapiclient/cli/results.py')
-rw-r--r-- | testapi/testapi-client/testapiclient/cli/results.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/testapi/testapi-client/testapiclient/cli/results.py b/testapi/testapi-client/testapiclient/cli/results.py index 56ea71f..5500501 100644 --- a/testapi/testapi-client/testapiclient/cli/results.py +++ b/testapi/testapi-client/testapiclient/cli/results.py @@ -2,6 +2,7 @@ import json from testapiclient.utils import command from testapiclient.utils import urlparse +from testapiclient.models import result def results_url(): @@ -86,12 +87,8 @@ class ResultCreate(command.ShowOne): parser.add_argument('result', type=json.loads, help='Result create request format:\n' - '\'{"project_name" : "","scenario" : "",' - '"stop_date" : "", "case_name" : "",' - '"build_tag" : "", "version" : "",' - '"pod_name" : "" , "criteria" : "",' - '"installer" : "", "start_date" : "",' - '"details" : ""}\'') + '\'{}\''.format(json.dumps( + result.ResultCreateRequest().__dict__))) return parser def take_action(self, parsed_args): |