diff --git a/cinderclient/tests/unit/v3/test_groups.py b/cinderclient/tests/unit/v3/test_groups.py index c094ede4e..e776f0a6b 100644 --- a/cinderclient/tests/unit/v3/test_groups.py +++ b/cinderclient/tests/unit/v3/test_groups.py @@ -128,12 +128,9 @@ class GroupsTest(utils.TestCase): grp = cs.groups.create_from_src('5678', None, name='group') expected = { 'create-from-src': { - 'status': 'creating', 'description': None, - 'user_id': None, 'name': 'group', 'group_snapshot_id': '5678', - 'project_id': None, 'source_group_id': None } } @@ -146,12 +143,9 @@ class GroupsTest(utils.TestCase): grp = cs.groups.create_from_src(None, '5678', name='group') expected = { 'create-from-src': { - 'status': 'creating', 'description': None, - 'user_id': None, 'name': 'group', 'source_group_id': '5678', - 'project_id': None, 'group_snapshot_id': None } } diff --git a/cinderclient/tests/unit/v3/test_shell.py b/cinderclient/tests/unit/v3/test_shell.py index cff2145ce..d7e97f18e 100644 --- a/cinderclient/tests/unit/v3/test_shell.py +++ b/cinderclient/tests/unit/v3/test_shell.py @@ -680,9 +680,6 @@ class ShellTest(utils.TestCase): def test_group_create_from_src(self, grp_snap_id, src_grp_id, src): expected = {'create-from-src': {'name': 'test-1', 'description': 'test-1-desc', - 'user_id': None, - 'project_id': None, - 'status': 'creating', 'group_snapshot_id': grp_snap_id, 'source_group_id': src_grp_id}} cmd = ('--os-volume-api-version 3.14 ' diff --git a/cinderclient/v3/groups.py b/cinderclient/v3/groups.py index 30280b591..d15e98e09 100644 --- a/cinderclient/v3/groups.py +++ b/cinderclient/v3/groups.py @@ -114,10 +114,7 @@ class GroupManager(base.ManagerWithFind): body = {'create-from-src': {'name': name, 'description': description, 'group_snapshot_id': group_snapshot_id, - 'source_group_id': source_group_id, - 'user_id': user_id, - 'project_id': project_id, - 'status': "creating", }} + 'source_group_id': source_group_id, }} self.run_hooks('modify_body_for_action', body, 'create-from-src')