Skip to content

Commit 811e08f

Browse files
authored
Add certificate renewal intent (#340)
* Add certificate renewal intent * format
1 parent f19508d commit 811e08f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

tests/test_portal.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ def test_generate_link_log_streams(
7878
"organization": "org_01EHQMYV6MBK39QC5PZXHY59C3",
7979
}
8080
assert response.link == "https://id.workos.com/portal/launch?secret=secret"
81+
82+
def test_generate_link_certificate_renewal(
83+
self, mock_portal_link, mock_http_client_with_response
84+
):
85+
mock_http_client_with_response(self.http_client, mock_portal_link, 201)
86+
87+
response = self.portal.generate_link(
88+
intent="certificate_renewal",
89+
organization_id="org_01EHQMYV6MBK39QC5PZXHY59C3",
90+
)
91+
92+
assert response.link == "https://id.workos.com/portal/launch?secret=secret"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from typing import Literal
22

33

4-
PortalLinkIntent = Literal["audit_logs", "dsync", "log_streams", "sso"]
4+
PortalLinkIntent = Literal[
5+
"audit_logs", "certificate_renewal", "dsync", "log_streams", "sso"
6+
]

0 commit comments

Comments
 (0)