Skip to content

Commit 76e6e51

Browse files
committed
Fixing enterprise-only features
1 parent 0fe4424 commit 76e6e51

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed

arangoasync/typings.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -622,30 +622,30 @@ class CollectionProperties(JsonWrapper):
622622
Example:
623623
.. code-block:: json
624624
625-
{
626-
"writeConcern" : 1,
627-
"waitForSync" : true,
628-
"usesRevisionsAsDocumentIds" : true,
629-
"syncByRevision" : true,
630-
"statusString" : "loaded",
631-
"id" : "68452",
632-
"isSmartChild" : false,
633-
"schema" : null,
634-
"name" : "products",
635-
"type" : 2,
636-
"status" : 3,
637-
"cacheEnabled" : false,
638-
"isSystem" : false,
639-
"internalValidatorType" : 0,
640-
"globallyUniqueId" : "hDA74058C1843/68452",
641-
"keyOptions" : {
642-
"allowUserKeys" : true,
643-
"type" : "traditional",
644-
"lastValue" : 0
645-
},
646-
"computedValues" : null,
647-
"objectId" : "68453"
648-
}
625+
{
626+
"writeConcern" : 1,
627+
"waitForSync" : true,
628+
"usesRevisionsAsDocumentIds" : true,
629+
"syncByRevision" : true,
630+
"statusString" : "loaded",
631+
"id" : "68452",
632+
"isSmartChild" : false,
633+
"schema" : null,
634+
"name" : "products",
635+
"type" : 2,
636+
"status" : 3,
637+
"cacheEnabled" : false,
638+
"isSystem" : false,
639+
"internalValidatorType" : 0,
640+
"globallyUniqueId" : "hDA74058C1843/68452",
641+
"keyOptions" : {
642+
"allowUserKeys" : true,
643+
"type" : "traditional",
644+
"lastValue" : 0
645+
},
646+
"computedValues" : null,
647+
"objectId" : "68453"
648+
}
649649
650650
References:
651651
- `get-the-properties-of-a-collection <https://docs.arangodb.com/stable/develop/http-api/collections/#get-the-properties-of-a-collection>`__

tests/test_client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,17 @@ async def test_client_jwt_auth(url, sys_db_name, basic_auth_root):
119119

120120

121121
@pytest.mark.asyncio
122-
async def test_client_jwt_superuser_auth(url, sys_db_name, basic_auth_root, token):
122+
async def test_client_jwt_superuser_auth(
123+
url, sys_db_name, basic_auth_root, token, enterprise
124+
):
123125
# successful authentication
124126
async with ArangoClient(hosts=url) as client:
125127
db = await client.db(
126128
sys_db_name, auth_method="superuser", token=token, verify=True
127129
)
128-
await db.jwt_secrets()
129-
await db.reload_jwt_secrets()
130+
if enterprise:
131+
await db.jwt_secrets()
132+
await db.reload_jwt_secrets()
130133

131134
# token missing
132135
async with ArangoClient(hosts=url) as client:

0 commit comments

Comments
 (0)