Skip to content

Commit

Permalink
Add test to check quota IDs are encoded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jan 22, 2024
1 parent 0b4df0f commit 0618dd8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/integration/test_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ def test_index(self):
json_response = index_response.json()
assert len(json_response) > 0

def test_index_returns_encoded_ids(self):
quota = self._create_quota_with_name("test-index-encoded-quota")
created_quota_id = quota["id"]
index_response = self._get("quotas")
index_response.raise_for_status()
json_response = index_response.json()
assert len(json_response) > 0
quota_ids = [quota["id"] for quota in json_response]
for quota_id in quota_ids:
assert isinstance(quota_id, str)
assert created_quota_id in quota_ids

def test_index_deleted(self):
quota = self._create_quota_with_name("test-index-deleted-quota")
quota_id = quota["id"]
Expand Down

0 comments on commit 0618dd8

Please sign in to comment.