diff options
author | Steven Hardy <shardy@redhat.com> | 2014-02-11 12:32:59 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2014-03-08 07:31:41 +0000 |
commit | c7b6a7d5a85801f7324764816c3c53344e84fb10 (patch) | |
tree | e54fbffe6fb24a451212346ca90dd3424dc649d3 /heat/tests/fakes.py | |
parent | 1eaabf672a5ef7ad832120617a9557ff28e06df5 (diff) | |
download | heat-c7b6a7d5a85801f7324764816c3c53344e84fb10.tar.gz |
StackUser add _delete_keypair function
Add function which allows a subclass to delete a keypair, required
for migration of User/AccessKey resources
Change-Id: I5f8923fa604a26c47d7a4226e8932dbd367bfbd1
blueprint: instance-users
Diffstat (limited to 'heat/tests/fakes.py')
-rw-r--r-- | heat/tests/fakes.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/heat/tests/fakes.py b/heat/tests/fakes.py index b8cef91fe..a4c202141 100644 --- a/heat/tests/fakes.py +++ b/heat/tests/fakes.py @@ -114,7 +114,8 @@ class FakeKeystoneClient(object): if user_id == self.user_id: return self.creds - def delete_ec2_keypair(self, user_id, access): + def delete_ec2_keypair(self, user_id=None, access=None, + credential_id=None): if user_id == self.user_id and access == self.creds.access: self.creds = None else: @@ -159,3 +160,7 @@ class FakeKeystoneClient(object): def disable_stack_domain_user(self, user_id, project_id): pass + + def delete_stack_domain_user_keypair(self, user_id, project_id, + credential_id): + pass |