File tree Expand file tree Collapse file tree
src/it/java/io/weaviate/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,4 +118,4 @@ jobs:
118118 AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
119119 OPENAI_APIKEY : ${{ secrets.OPENAI_APIKEY }}
120120 WEAVIATE_VERSION : ${{ matrix.WEAVIATE_VERSION }}
121- run : mvn verify -Dtest=BatchContextTest -Dgpg.skip
121+ run : mvn verify -Dtest=OidcSupportITest -Dgpg.skip
Original file line number Diff line number Diff line change 77import java .util .concurrent .CompletableFuture ;
88import java .util .concurrent .CompletionException ;
99import java .util .concurrent .ExecutionException ;
10+ import java .util .concurrent .ExecutorService ;
11+ import java .util .concurrent .Executors ;
1012import java .util .concurrent .TimeoutException ;
1113import java .util .stream .IntStream ;
1214
1315import org .assertj .core .api .Assertions ;
1416import org .assertj .core .api .InstanceOfAssertFactories ;
17+ import org .junit .AfterClass ;
1518import org .junit .Test ;
1619
1720import io .weaviate .ConcurrentTest ;
2326import io .weaviate .containers .Weaviate ;
2427
2528public class BackupITest extends ConcurrentTest {
29+ private static final ExecutorService EXEC = Executors .newSingleThreadExecutor ();
2630 private static final WeaviateClient client = Weaviate .custom ()
2731 .withFilesystemBackup ("/tmp/backups" ).build ()
2832 .getClient ();
2933
34+ @ AfterClass
35+ public static void tearDown () {
36+ EXEC .shutdownNow ();
37+ }
38+
3039 @ Test
3140 public void test_lifecycle () throws IOException , TimeoutException {
3241 Weaviate .Version .V132 .orSkip (); // List backups not implemented in earlier versions
@@ -256,6 +265,6 @@ private CompletableFuture<Void> spamData(String collectionName) {
256265 throw new CompletionException (e );
257266 }
258267 return null ;
259- });
268+ }, EXEC );
260269 }
261270}
Original file line number Diff line number Diff line change 99
1010import org .assertj .core .api .Assertions ;
1111import org .junit .Assume ;
12- import org .junit .Ignore ;
1312import org .junit .Test ;
1413
1514import io .weaviate .ConcurrentTest ;
2928 * Additionally, {@code WCS_DUMMY_CI_PW} and {@code OKTA_CLIENT_SECRET}
3029 * environment variables must be set.
3130 */
32- @ Ignore
3331public class OidcSupportITest extends ConcurrentTest {
3432 private static final String WCS_DUMMY_CI_USERNAME = "oidc-test-user@weaviate.io" ;
3533 private static final String WCS_DUMMY_CI_PW = System .getenv ("WCS_DUMMY_CI_PW" );
@@ -56,7 +54,6 @@ public class OidcSupportITest extends ConcurrentTest {
5654 * and authenticate with it.
5755 */
5856 @ Test
59- @ Ignore ("flaky" )
6057 public void test_bearerToken () throws Exception {
6158 Assume .assumeTrue ("WCS_DUMMY_CI_PW is not set" , WCS_DUMMY_CI_PW != null && !WCS_DUMMY_CI_PW .isBlank ());
6259 Assume .assumeTrue ("no internet connection" , hasInternetConnection ());
You can’t perform that action at this time.
0 commit comments