Skip to content

Commit c53997e

Browse files
authored
Merge pull request #1615 from weaviate/update_username_auth_test
Fix username in auth test
2 parents 146036b + 4ebfc14 commit c53997e

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

ci/docker-compose-wcs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ services:
2424
AUTHENTICATION_OIDC_USERNAME_CLAIM: 'email'
2525
AUTHENTICATION_OIDC_GROUPS_CLAIM: 'groups'
2626
AUTHORIZATION_ADMINLIST_ENABLED: 'true'
27-
AUTHORIZATION_ADMINLIST_USERS: 'ms_2d0e007e7136de11d5f29fce7a53dae219a51458@existiert.net'
27+
AUTHORIZATION_ADMINLIST_USERS: 'oidc-test-user@weaviate.io'
2828
AUTHENTICATION_OIDC_SCOPES: 'openid,email'
2929
AUTHENTICATION_APIKEY_ENABLED: 'true'
3030
AUTHENTICATION_APIKEY_ALLOWED_KEYS: 'my-secret-key'
31-
AUTHENTICATION_APIKEY_USERS: 'ms_2d0e007e7136de11d5f29fce7a53dae219a51458@existiert.net'
31+
AUTHENTICATION_APIKEY_USERS: 'oidc-test-user@weaviate.io'
3232
DISABLE_TELEMETRY: 'true'
3333
...

integration/test_auth.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ def test_authentication_client_credentials(
6666
@pytest.mark.parametrize(
6767
"name,user,env_variable_name,port,scope,warning",
6868
[
69-
# ( # WCS keycloak times out too often
70-
# "WCS",
71-
# "ms_2d0e007e7136de11d5f29fce7a53dae219a51458@existiert.net",
72-
# "WCS_DUMMY_CI_PW",
73-
# WCS_PORT,
74-
# None,
75-
# False,
76-
# ),
69+
( # WCS keycloak times out too often
70+
"WCS",
71+
"oidc-test-user@weaviate.io",
72+
"WCS_DUMMY_CI_PW",
73+
WCS_PORT,
74+
None,
75+
False,
76+
),
7777
(
7878
"okta",
7979
"test@test.de",
@@ -168,12 +168,12 @@ def _get_access_token(url: str, user: str, pw: str) -> Dict[str, str]:
168168
@pytest.mark.parametrize(
169169
"name,user,env_variable_name,port",
170170
[
171-
# ( # WCS keycloak times out too often
172-
# "WCS",
173-
# "ms_2d0e007e7136de11d5f29fce7a53dae219a51458@existiert.net",
174-
# "WCS_DUMMY_CI_PW",
175-
# WCS_PORT,
176-
# ),
171+
( # WCS keycloak times out too often
172+
"WCS",
173+
"oidc-test-user@weaviate.io",
174+
"WCS_DUMMY_CI_PW",
175+
WCS_PORT,
176+
),
177177
(
178178
"okta",
179179
"test@test.de",
@@ -200,7 +200,7 @@ def test_authentication_with_bearer_token(
200200
refresh_token=token["refresh_token"],
201201
)
202202
with weaviate.connect_to_local(port=port, auth_credentials=auth) as client:
203-
client.collections.list_all()
203+
client.collections.exists("something")
204204

205205

206206
def test_authentication_with_bearer_token_no_refresh() -> None:

0 commit comments

Comments
 (0)