[cli] Unused but required parameter 'workbook' in execution-get(delete, update) commands

Bug #1353291 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Low
Unassigned

Bug Description

Create a real execution for the existing workbook:
root@mistralclient-tests:/home/ubuntu/python-mistralclient# mistral execution-create wb hello {}
Starting new HTTP connection (1): localhost
+----------+--------------------------------------+
| Field | Value |
+----------+--------------------------------------+
| ID | 2e6a912d-bf72-4db2-8ffd-0418c70eeb0a |
| Workbook | wb |
| Task | hello |
| State | RUNNING |
+----------+--------------------------------------+
Check workbook list and verify that we have only one created workbook:
root@mistralclient-tests:/home/ubuntu/python-mistralclient# mistral workbook-list
Starting new HTTP connection (1): localhost
+------+-------------+------+
| Name | Description | Tags |
+------+-------------+------+
| wb | def | tag |
+------+-------------+------+
Get execution from nonexisting workbook:
root@mistralclient-tests:/home/ubuntu/python-mistralclient# mistral execution-get nonexisting_wb 2e6a912d-bf72-4db2-8ffd-0418c70eeb0a
Starting new HTTP connection (1): localhost
+----------+--------------------------------------+
| Field | Value |
+----------+--------------------------------------+
| ID | 2e6a912d-bf72-4db2-8ffd-0418c70eeb0a |
| Workbook | wb |
| Task | hello |
| State | SUCCESS |
+----------+--------------------------------------+
root@mistralclient-tests:/home/ubuntu/python-mistralclient# mistral execution-get 2e6a912d-bf72-4db2-8ffd-0418c70eeb0a
usage: mistral execution-get [-h] [-f {shell,table,value}] [-c COLUMN]
                             [--max-width <integer>] [--prefix PREFIX]
                             workbook id
mistral execution-get: error: too few arguments

As we can see workbook is required parameter, but we can set unreal workbook and real execution id and execution-get method will receive execution using only its id for searching.

The same situation for the delete and update commands.

Tags: cli
summary: - [cli] Unused but required parameter 'workbook' in execution-get command
+ [cli] Unused but required parameter 'workbook' in execution-get(delete,
+ update) commands
description: updated
Changed in mistral:
status: New → Confirmed
Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote :

Bug was moved to python-mistralclient project:
https://bugs.launchpad.net/python-mistralclient/+bug/1374308

Changed in mistral:
status: Confirmed → Invalid
importance: Medium → Undecided
Revision history for this message
Nikolay Makhotkin (nmakhotkin) wrote :

Affects only v1.

Changed in mistral:
importance: Undecided → Low
status: Invalid → Triaged
milestone: none → 0.1.1
Changed in mistral:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.