Update set of wanted commands in read-only test

Nowadays Glance supports more subcommands.
Closes-Bug: #1520585

Change-Id: Ic95c26df31dc3bfb4436969e728f7a1a7c50ff0c
This commit is contained in:
Kyrylo Romanenko 2015-11-27 15:54:40 +02:00
parent af91e2cc0c
commit 698f53d241
1 changed files with 9 additions and 5 deletions

View File

@ -93,11 +93,15 @@ class SimpleReadOnlyGlanceClientTest(base.ClientTestBase):
if match:
commands.append(match.group(1))
commands = set(commands)
wanted_commands = set(('image-create', 'image-delete', 'help',
'image-download', 'image-show', 'image-update',
'member-create', 'member-delete',
'member-list', 'image-list', 'image-deactivate',
'image-reactivate'))
wanted_commands = {'bash-completion', 'help',
'image-create', 'image-deactivate', 'image-delete',
'image-download', 'image-list', 'image-reactivate',
'image-show', 'image-tag-delete',
'image-tag-update', 'image-update', 'image-upload',
'location-add', 'location-delete',
'location-update', 'member-create', 'member-delete',
'member-list', 'member-update', 'task-create',
'task-list', 'task-show'}
self.assertFalse(wanted_commands - commands)
def test_version(self):