diff --git a/tests/test_AuthorizationApi.py b/tests/test_AuthorizationApi.py index 036f0d60..70369deb 100644 --- a/tests/test_AuthorizationApi.py +++ b/tests/test_AuthorizationApi.py @@ -101,7 +101,7 @@ def test_createAuthorizationBucket(self): organization = self.client.organizations_api().create_organization(self.generate_name("Auth Organization")) bucket = self.client.buckets_api().create_bucket(bucket_name=self.generate_name("Auth Bucket"), retention_rules=BaseTest.retention_rule(), - org=self.organization) + org=organization) resource = PermissionResource(org_id=organization.id, type="buckets", id=bucket.id) create_bucket = Permission(action="read", resource=resource) delete_bucket = Permission(action="write", resource=resource) @@ -119,6 +119,7 @@ def test_createAuthorizationBucket(self): self.assertEqual(authorization.permissions[1].action, "write") self.delete_test_bucket(bucket) + def test_findAuthorizationsByID(self): with pytest.raises(ApiException) as e: self.authorization_api().find_authorization_by_id("020f755c3c082000") diff --git a/tests/test_health.py b/tests/test_health.py index 0c03f9e3..9e9872a2 100644 --- a/tests/test_health.py +++ b/tests/test_health.py @@ -16,9 +16,10 @@ def setUp(self) -> None: def test_health(self): health = self.client.health() - self.assertEqual(health.message, 'ready for queries and writes') - self.assertEqual(health.status, "pass") - self.assertEqual(health.name, "influxdb") + healthResponses = ["healthy", "ready for queries and writes"] + self.assertIn(health.message, healthResponses) + self.assertEqual("pass", health.status) + self.assertEqual("influxdb", health.name) def test_health_not_running_instance(self): client_not_running = InfluxDBClient("http://localhost:8099", token="my-token", debug=True)