Skip to content

Commit f1c91ef

Browse files
committed
add test cases
1 parent e9024db commit f1c91ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/api/test_livekitapi.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@ async def _sip_smoke():
291291
numbers=["+15105550100"],
292292
),
293293
)
294+
# field-level (kwargs) update helpers
295+
await lk.sip.update_inbound_trunk_fields(
296+
"ST_abc123", name="inbound-v3", metadata="{}", numbers=["+15105550100"]
297+
)
298+
await lk.sip.update_outbound_trunk_fields(
299+
"ST_abc123", name="outbound-v3", address="sip.telco.example.com"
300+
)
294301
await lk.sip.list_inbound_trunk(
295302
api.ListSIPInboundTrunkRequest(trunk_ids=["ST_abc123"], numbers=["+15105550100"])
296303
)
@@ -319,6 +326,7 @@ async def _sip_smoke():
319326
),
320327
),
321328
)
329+
await lk.sip.update_dispatch_rule_fields("SDR_abc123", name="rule-v3", metadata="{}")
322330
await lk.sip.list_dispatch_rule(
323331
api.ListSIPDispatchRuleRequest(
324332
dispatch_rule_ids=["SDR_abc123"], trunk_ids=["ST_abc123"]

0 commit comments

Comments
 (0)