When the etcd key tracking realms is first created the action is create, not set.

This commit is contained in:
Jake Moshenko 2014-12-31 11:46:02 -05:00
parent cc70225043
commit a9839021af
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ class TestEphemeral(unittest.TestCase):
self.assertEqual(self.register_component_callback.call_count, 0)
realm_created = Mock(spec=etcd.EtcdResult)
realm_created.action = EtcdAction.SET
realm_created.action = EtcdAction.CREATE
realm_created.key = os.path.join(ETCD_REALM_PREFIX, REALM_ID)
realm_created.value = json.dumps({
'realm': REALM_ID,