Skip to content

Commit e33c8e2

Browse files
fix test
1 parent 03bab7e commit e33c8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/tests/unit/with_dbs/01/test_api_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def test_create_api_key(
112112
resp = await client.post(
113113
"/v0/auth/api-keys",
114114
json={"displayName": display_name},
115-
headers={"X-Forwarded-Host": "osparc.io"},
115+
headers={"X-Forwarded-Proto": "https", "X-Forwarded-Host": "osparc.io"},
116116
)
117117

118118
data, errors = await assert_status(resp, expected)
@@ -122,7 +122,7 @@ async def test_create_api_key(
122122
assert "apiKey" in data
123123
assert "apiSecret" in data
124124
assert "apiBaseUrl" in data
125-
assert data["apiBaseUrl"] == "http://api.osparc.io/"
125+
assert data["apiBaseUrl"] == "https://api.osparc.io/"
126126

127127
resp = await client.get("/v0/auth/api-keys")
128128
data, _ = await assert_status(resp, expected)

0 commit comments

Comments
 (0)