Skip to content

Commit 0ab4d43

Browse files
committed
fixup! [ADD] webservice_client_certificate_auth: new module
1 parent 4b7b624 commit 0ab4d43

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

webservice_client_certificate_auth/tests/test_webservice_client_certificate_auth.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright 2026 Camptocamp SA
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

4-
import os
54
from unittest import mock
65

76
from odoo import exceptions
@@ -15,14 +14,6 @@ def _setup_records(cls):
1514
res = super()._setup_records()
1615
cls.url = "https://localhost.demo.odoo/"
1716
# Certificate and private key configuration
18-
os.environ["SERVER_ENV_CONFIG"] = "\n".join(
19-
[
20-
"[webservice_backend.test_client_certificate_and_key]",
21-
"auth_type = client_certificate",
22-
"client_certificate_path = /path/client.cert",
23-
"client_private_key_path = /path/client.key",
24-
]
25-
)
2617
cls.backend_certificate_and_key = cls.env["webservice.backend"].create(
2718
{
2819
"name": "Webservice Client Certificate & Key",
@@ -35,13 +26,6 @@ def _setup_records(cls):
3526
}
3627
)
3728
# Certificate only configuration (no private key)
38-
os.environ["SERVER_ENV_CONFIG"] = "\n".join(
39-
[
40-
"[webservice_backend.test_client_certificate_only]",
41-
"auth_type = client_certificate",
42-
"client_certificate_path = /path/client.pem",
43-
]
44-
)
4529
cls.backend_certificate_only = cls.env["webservice.backend"].create(
4630
{
4731
"name": "Webservice Client Certificate Only",

0 commit comments

Comments
 (0)