Merge "Fix typo and add test for refresh_instance_security_rules"

This commit is contained in:
Jenkins
2014-03-21 07:34:46 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -546,6 +546,12 @@ class _VirtDriverTestCase(_FakeDriverBackendTestCase):
instance_ref, network_info = self._get_running_instance()
self.connection.refresh_security_group_members(1)
@catch_notimplementederror
def test_refresh_instance_security_rules(self):
# FIXME: Create security group and add the instance to it
instance_ref, network_info = self._get_running_instance()
self.connection.refresh_instance_security_rules(instance_ref)
@catch_notimplementederror
def test_refresh_provider_fw_rules(self):
instance_ref, network_info = self._get_running_instance()

View File

@@ -833,7 +833,7 @@ class ComputeDriver(object):
Gets called when an instance gets added to or removed from
the security group the instance is a member of or if the
group gains or looses a rule.
group gains or loses a rule.
"""
raise NotImplementedError()