@@ -180,7 +180,7 @@ def test_create_and_update_policy(self):
180180 rules = ACL_NEW_RULES )
181181 result = self .consul .acl .update_policy (value ["ID" ],
182182 value ["Name" ],
183- policy = ACL_NEW_UPDATE_RULES )
183+ rules = ACL_NEW_UPDATE_RULES )
184184 self .assertGreater (result ["ModifyIndex" ], result ["CreateIndex" ])
185185
186186 def test_create_and_delete_policy (self ):
@@ -195,12 +195,11 @@ def test_list_policy_exception(self):
195195 self .consul .acl .list_policies ()
196196
197197 def test_create_role (self ):
198- result = self .consul .acl .create_create_role (
198+ result = self .consul .acl .create_role (
199199 "unittest_create_role" ,
200200 policies = POLICYLINKS_SAMPLE ,
201201 service_identities = SERVICE_IDENTITIES_SAMPLE )
202- self .assertEqual (result ['Policies' ][0 ]['ID' ],
203- POLICYLINKS_SAMPLE ['Policies' ][0 ]['ID' ])
202+ self .assertEqual (result [0 ]['ID' ], POLICYLINKS_SAMPLE [0 ]['ID' ])
204203
205204 def test_create_and_read_role (self ):
206205 value = self .consul .acl .create_role (
@@ -217,7 +216,9 @@ def test_create_and_update_role(self):
217216 policies = POLICYLINKS_SAMPLE ,
218217 service_identities = SERVICE_IDENTITIES_SAMPLE )
219218 result = self .consul .acl .update_role (
220- value ["ID" ], policies = POLICYLINKS_UPDATE_SAMPLE )
219+ value ["ID" ],
220+ "unittest_read_role" ,
221+ policies = POLICYLINKS_UPDATE_SAMPLE )
221222 self .assertGreater (result ["ModifyIndex" ], result ["CreateIndex" ])
222223
223224 def test_create_and_delete_role (self ):
0 commit comments