5
5
6
6
@pytest .mark .asyncio
7
7
async def test_get_search_not_authenticated (app_client_basic_auth , ctx ):
8
- """Test public endpoint search without authentication"""
8
+ """Test public endpoint [GET / search] without authentication"""
9
9
if not os .getenv ("BASIC_AUTH" ):
10
10
pytest .skip ()
11
11
params = {"id" : ctx .item ["id" ]}
@@ -18,7 +18,7 @@ async def test_get_search_not_authenticated(app_client_basic_auth, ctx):
18
18
19
19
@pytest .mark .asyncio
20
20
async def test_post_search_authenticated (app_client_basic_auth , ctx ):
21
- """Test protected post search with reader auhtentication"""
21
+ """Test protected endpoint [POST / search] with reader auhtentication"""
22
22
if not os .getenv ("BASIC_AUTH" ):
23
23
pytest .skip ()
24
24
params = {"id" : ctx .item ["id" ]}
@@ -34,7 +34,7 @@ async def test_post_search_authenticated(app_client_basic_auth, ctx):
34
34
async def test_delete_resource_anonymous (
35
35
app_client_basic_auth ,
36
36
):
37
- """Test protected delete collection without auhtentication"""
37
+ """Test protected endpoint [DELETE /collections/{collection_id}] without auhtentication"""
38
38
if not os .getenv ("BASIC_AUTH" ):
39
39
pytest .skip ()
40
40
@@ -46,7 +46,7 @@ async def test_delete_resource_anonymous(
46
46
47
47
@pytest .mark .asyncio
48
48
async def test_delete_resource_invalid_credentials (app_client_basic_auth , ctx ):
49
- """Test protected delete collection with admin auhtentication """
49
+ """Test protected endpoint [DELETE /collections/{collection_id}] with invalid credentials """
50
50
if not os .getenv ("BASIC_AUTH" ):
51
51
pytest .skip ()
52
52
@@ -62,7 +62,7 @@ async def test_delete_resource_invalid_credentials(app_client_basic_auth, ctx):
62
62
63
63
@pytest .mark .asyncio
64
64
async def test_delete_resource_insufficient_permissions (app_client_basic_auth , ctx ):
65
- """Test protected delete collection with reader auhtentication """
65
+ """Test protected endpoint [DELETE /collections/{collection_id}] with reader user which has insufficient permissions """
66
66
if not os .getenv ("BASIC_AUTH" ):
67
67
pytest .skip ()
68
68
@@ -80,7 +80,7 @@ async def test_delete_resource_insufficient_permissions(app_client_basic_auth, c
80
80
81
81
@pytest .mark .asyncio
82
82
async def test_delete_resource_sufficient_permissions (app_client_basic_auth , ctx ):
83
- """Test protected delete collection with admin auhtentication"""
83
+ """Test protected endpoint [DELETE /collections/{collection_id}] with admin user auhtentication which has sufficient permissions """
84
84
if not os .getenv ("BASIC_AUTH" ):
85
85
pytest .skip ()
86
86
0 commit comments