diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-22 18:43:42 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-22 19:02:39 +0800 |
| commit | 70f8ae753467fb79e72969fb846c411f6c4d50d5 (patch) | |
| tree | b8ef51cc063d0310b70560b7d06ffba705d8c5d3 /openstackclient/compute/v2 | |
| parent | de909e4afc73ab88af6925314869d11564033842 (diff) | |
| download | python-openstackclient-70f8ae753467fb79e72969fb846c411f6c4d50d5.tar.gz | |
Refactor unit test of "compute service list" command
The unit test of "compute service list" only checked the
"Disabled Reason" columns and its data. It is not enough.
This patch change the test to check all datas in the list.
Also, this patch modify the "Id" to "ID" in this command.
Change-Id: I988fd6365f2652185dd96d9417f294eba9c31cd9
Diffstat (limited to 'openstackclient/compute/v2')
| -rw-r--r-- | openstackclient/compute/v2/service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/compute/v2/service.py b/openstackclient/compute/v2/service.py index 36917e20..2e40dd7f 100644 --- a/openstackclient/compute/v2/service.py +++ b/openstackclient/compute/v2/service.py @@ -73,7 +73,7 @@ class ListService(command.Lister): compute_client = self.app.client_manager.compute if parsed_args.long: columns = ( - "Id", + "ID", "Binary", "Host", "Zone", @@ -84,7 +84,7 @@ class ListService(command.Lister): ) else: columns = ( - "Id", + "ID", "Binary", "Host", "Zone", |
