File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 44from http import HTTPStatus
55import logging
66from typing import Any , Optional
7- from urllib .parse import urljoin
87
98import jwt
109import requests
@@ -54,7 +53,7 @@ def _method(
5453
5554 Args:
5655 method : The API HTTP method
57- path : Path for the request.
56+ path : Path for the request (must begin with a slash) .
5857 data : Form data to send with the request in case of the POST
5958 json : JSON data to send with the request in case of the POST
6059 kwargs : Additional keyword args
@@ -65,7 +64,7 @@ def _method(
6564 final_headers = self .headers .copy ()
6665 if headers is not None :
6766 final_headers .update (headers )
68- url = urljoin ( self .server_url , path )
67+ url = self .server_url + path
6968 request_dict = dict (
7069 params = kwargs ,
7170 data = data ,
@@ -322,7 +321,7 @@ def __repr__(self):
322321 )
323322
324323 def set_oidc_public_key (self ):
325- realm_public_key_uri = f"realms/{ self ._realm_name } "
324+ realm_public_key_uri = f"/ realms/{ self ._realm_name } "
326325 response_json = self ._connection .get (realm_public_key_uri ).json ()
327326 public_key = response_json ["public_key" ]
328327 pem_public_key = "-----BEGIN PUBLIC KEY-----\n "
Original file line number Diff line number Diff line change 1010from stat import ST_MTIME
1111import tarfile
1212from typing import Dict , Optional
13- from urllib .parse import urljoin
1413import uuid
1514
1615from cryptography .hazmat .primitives .asymmetric import rsa
@@ -165,7 +164,7 @@ def add_auth_connection_mock(server_config, rsa_keys):
165164 with responses .RequestsMock () as mock :
166165 oidc_server = server_config .get ("openid" , "server_url" )
167166 oidc_realm = server_config .get ("openid" , "realm" )
168- url = urljoin ( oidc_server , f" realms/{ oidc_realm } " )
167+ url = oidc_server + "/ realms/" + oidc_realm
169168
170169 mock .add (
171170 responses .GET ,
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ http {
121121 proxy_set_header X-Real-IP $remote_addr ;
122122 proxy_set_header X-Forwarded-Proto $scheme ;
123123
124- client_max_body_size 10G ;
124+ client_max_body_size 100G ;
125125 }
126126
127127 location /dashboard {
You can’t perform that action at this time.
0 commit comments