We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a6d6b commit eb860edCopy full SHA for eb860ed
tests/influxdb/client_test.py
@@ -296,7 +296,22 @@ def test_add_cluster_admin(self):
296
pass
297
298
def test_update_cluster_admin_password(self):
299
- pass
+ with requests_mock.Mocker() as m:
300
+ m.register_uri(
301
+ requests_mock.POST,
302
+ "http://localhost:8086/cluster_admins/paul"
303
+ )
304
+
305
+ cli = InfluxDBClient(database='db')
306
+ cli.update_cluster_admin_password(
307
+ username='paul',
308
+ new_password='laup'
309
310
311
+ self.assertDictEqual(
312
+ json.loads(m.last_request.body),
313
+ {'password': 'laup'}
314
315
316
def test_delete_cluster_admin(self):
317
0 commit comments