1616/**
1717 * Test that the client can use one of the supported authorization flows to
1818 * obtain a token from the OIDC provider and use it in a request to Weaviate.
19+ *
20+ * Running this test suite successfully requires talking to external services,
21+ * so tests will be skipped if the don't have internet. See
22+ * {@link #hasInternetConnection}.
1923 */
2024public class OIDCSupportITest extends ConcurrentTest {
21- private static final String WCS_DUMMY_CI_USER = "oidc-test-user@weaviate.io" ;
25+ private static final String WCS_DUMMY_CI_USERNAME = "oidc-test-user@weaviate.io" ;
2226 private static final String WCS_DUMMY_CI_PW = System .getenv ("WCS_DUMMY_CI_PW" );
2327
2428 /**
@@ -51,7 +55,7 @@ public void test_resourceOwnerPassword() throws IOException {
5155 Assume .assumeTrue ("WCS_DUMMY_CI_PW is not set" , WCS_DUMMY_CI_PW != null );
5256 Assume .assumeTrue ("no internet connection" , hasInternetConnection ());
5357
54- var authz = Authorization .resourceOwnerPassword (WCS_DUMMY_CI_USER , WCS_DUMMY_CI_PW , List .of ("test_scope" ));
58+ var authz = Authorization .resourceOwnerPassword (WCS_DUMMY_CI_USERNAME , WCS_DUMMY_CI_PW , List .of ());
5559 pingWeaviate (wcsContainer , authz );
5660 }
5761
@@ -60,7 +64,7 @@ public void test_clientCredentials() throws IOException {
6064 Assume .assumeTrue ("OKTA_CLIENT_SECRET is not set" , OKTA_CLIENT_SECRET != null );
6165 Assume .assumeTrue ("no internet connection" , hasInternetConnection ());
6266
63- var authz = Authorization .clientCredentials (OKTA_CLIENT_ID , OKTA_CLIENT_SECRET , List .of ("test_scope" ));
67+ var authz = Authorization .clientCredentials (OKTA_CLIENT_ID , OKTA_CLIENT_SECRET , List .of ());
6468 pingWeaviate (oktaContainer , authz );
6569 }
6670
0 commit comments