diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-03-17 19:32:25 -0400 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-03-17 19:32:25 -0400 |
| commit | 4940654f04c50c8593f8e5486fa9e4998f2a3fc7 (patch) | |
| tree | 4d6319b4a04c7fefc28016dd9992f5aace3d6b02 /nova/tests | |
| parent | d6e6ba0780faa962b35635dbd9f62818a98f5313 (diff) | |
Changing project manager should make sure that user is a project member.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_auth.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/tests/test_auth.py b/nova/tests/test_auth.py index 2a7817032..885596f56 100644 --- a/nova/tests/test_auth.py +++ b/nova/tests/test_auth.py @@ -299,6 +299,13 @@ class AuthManagerTestCase(object): self.assertEqual('test2', project.project_manager_id) self.assertEqual('new desc', project.description) + def test_modify_project_adds_new_manager(self): + with user_and_project_generator(self.manager): + with user_generator(self.manager, name='test2'): + self.manager.modify_project('testproj', 'test2', 'new desc') + project = self.manager.get_project('testproj') + self.assertTrue('test2' in project.member_ids) + def test_can_delete_project(self): with user_generator(self.manager): self.manager.create_project('testproj', 'test1') |
