Debian Codegraph @

tests/wire/test_logStreams.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3 from auth0.management import CreateLogStreamHttpRequestBody, LogStreamHttpSink
4
5
6 def test_logStreams_list_() -> None:
7 """Test list endpoint with WireMock"""
8 test_id = "log_streams.list_.0"
9 client = get_client(test_id)
10 client.log_streams.list()
11 verify_request_count(test_id, "GET", "/log-streams", None, 1)
12
13
14 def test_logStreams_create() -> None:
15 """Test create endpoint with WireMock"""
16 test_id = "log_streams.create.0"
17 client = get_client(test_id)
18 client.log_streams.create(
19 request=CreateLogStreamHttpRequestBody(
20 type="http",
21 sink=LogStreamHttpSink(
22 http_endpoint="httpEndpoint",
23 ),
24 ),
25 )
26 verify_request_count(test_id, "POST", "/log-streams", None, 1)
27
28
29 def test_logStreams_get() -> None:
30 """Test get endpoint with WireMock"""
31 test_id = "log_streams.get.0"
32 client = get_client(test_id)
33 client.log_streams.get(
34 id="id",
35 )
36 verify_request_count(test_id, "GET", "/log-streams/id", None, 1)
37
38
39 def test_logStreams_delete() -> None:
40 """Test delete endpoint with WireMock"""
41 test_id = "log_streams.delete.0"
42 client = get_client(test_id)
43 client.log_streams.delete(
44 id="id",
45 )
46 verify_request_count(test_id, "DELETE", "/log-streams/id", None, 1)
47
48
49 def test_logStreams_update() -> None:
50 """Test update endpoint with WireMock"""
51 test_id = "log_streams.update.0"
52 client = get_client(test_id)
53 client.log_streams.update(
54 id="id",
55 )
56 verify_request_count(test_id, "PATCH", "/log-streams/id", None, 1)