diff --git a/test-functional/src/test/java/com/arangodb/ArangoDBAsyncTest.java b/test-functional/src/test/java/com/arangodb/ArangoDBAsyncTest.java index 1598a7ca1..cbe2ee8c0 100644 --- a/test-functional/src/test/java/com/arangodb/ArangoDBAsyncTest.java +++ b/test-functional/src/test/java/com/arangodb/ArangoDBAsyncTest.java @@ -637,28 +637,30 @@ void arangoDBException(ArangoDBAsync arangoDB) { assertThat(e.getErrorNum()).isEqualTo(1228); } - @ParameterizedTest - @MethodSource("asyncArangos") - void fallbackHost() throws ExecutionException, InterruptedException { - final ArangoDBAsync arangoDB = new ArangoDB.Builder() - .loadProperties(config) - .host("not-accessible", 8529).host("172.28.0.1", 8529) - .build() - .async(); - final ArangoDBVersion version = arangoDB.getVersion().get(); - assertThat(version).isNotNull(); - } - - @ParameterizedTest - @MethodSource("asyncArangos") - void loadpropertiesWithPrefix() throws ExecutionException, InterruptedException { - ArangoDBAsync adb = new ArangoDB.Builder() - .loadProperties(ConfigUtils.loadConfig("arangodb-with-prefix.properties", "adb")) - .build() - .async(); - adb.getVersion().get(); - adb.shutdown(); - } +// FIXME: do not hard-code host address +// @ParameterizedTest +// @MethodSource("asyncArangos") +// void fallbackHost() throws ExecutionException, InterruptedException { +// final ArangoDBAsync arangoDB = new ArangoDB.Builder() +// .loadProperties(config) +// .host("not-accessible", 8529).host("172.28.0.1", 8529) +// .build() +// .async(); +// final ArangoDBVersion version = arangoDB.getVersion().get(); +// assertThat(version).isNotNull(); +// } + +// FIXME: do not hard-code host address +// @ParameterizedTest +// @MethodSource("asyncArangos") +// void loadpropertiesWithPrefix() throws ExecutionException, InterruptedException { +// ArangoDBAsync adb = new ArangoDB.Builder() +// .loadProperties(ConfigUtils.loadConfig("arangodb-with-prefix.properties", "adb")) +// .build() +// .async(); +// adb.getVersion().get(); +// adb.shutdown(); +// } @ParameterizedTest @MethodSource("asyncArangos") diff --git a/test-functional/src/test/java/com/arangodb/ArangoDBTest.java b/test-functional/src/test/java/com/arangodb/ArangoDBTest.java index 7085c7ae7..bd3ad581d 100644 --- a/test-functional/src/test/java/com/arangodb/ArangoDBTest.java +++ b/test-functional/src/test/java/com/arangodb/ArangoDBTest.java @@ -651,15 +651,16 @@ void arangoDBException(ArangoDB arangoDB) { assertThat(e.getErrorNum()).isEqualTo(1228); } - @ParameterizedTest - @MethodSource("arangos") - void fallbackHost() { - final ArangoDB arangoDB = new ArangoDB.Builder() - .loadProperties(config) - .host("not-accessible", 8529).host("172.28.0.1", 8529).build(); - final ArangoDBVersion version = arangoDB.getVersion(); - assertThat(version).isNotNull(); - } +// FIXME: do not hard-code host address +// @ParameterizedTest +// @MethodSource("arangos") +// void fallbackHost() { +// final ArangoDB arangoDB = new ArangoDB.Builder() +// .loadProperties(config) +// .host("not-accessible", 8529).host("172.28.0.1", 8529).build(); +// final ArangoDBVersion version = arangoDB.getVersion(); +// assertThat(version).isNotNull(); +// } @ParameterizedTest @MethodSource("arangos") @@ -670,28 +671,30 @@ void loadproperties() { assertThat(thrown).isInstanceOf(IllegalArgumentException.class); } - @ParameterizedTest - @MethodSource("arangos") - void loadPropertiesWithPrefix() { - ArangoDB adb = new ArangoDB.Builder() - .loadProperties(ConfigUtils.loadConfig("arangodb-with-prefix.properties", "adb")) - .build(); - adb.getVersion(); - adb.shutdown(); - } - - @ParameterizedTest - @MethodSource("arangos") - void loadConfigFromPropertiesWithPrefix() { - Properties props = new Properties(); - props.setProperty("adb.hosts", "172.28.0.1:8529"); - props.setProperty("adb.password", "test"); - ArangoDB adb = new ArangoDB.Builder() - .loadProperties(ConfigUtils.loadConfig(props, "adb")) - .build(); - adb.getVersion(); - adb.shutdown(); - } +// FIXME: do not hard-code host address +// @ParameterizedTest +// @MethodSource("arangos") +// void loadPropertiesWithPrefix() { +// ArangoDB adb = new ArangoDB.Builder() +// .loadProperties(ConfigUtils.loadConfig("arangodb-with-prefix.properties", "adb")) +// .build(); +// adb.getVersion(); +// adb.shutdown(); +// } + +// FIXME: do not hard-code host address +// @ParameterizedTest +// @MethodSource("arangos") +// void loadConfigFromPropertiesWithPrefix() { +// Properties props = new Properties(); +// props.setProperty("adb.hosts", "172.28.0.1:8529"); +// props.setProperty("adb.password", "test"); +// ArangoDB adb = new ArangoDB.Builder() +// .loadProperties(ConfigUtils.loadConfig(props, "adb")) +// .build(); +// adb.getVersion(); +// adb.shutdown(); +// } @ParameterizedTest @MethodSource("arangos") diff --git a/test-functional/src/test/java/com/arangodb/ArangoSearchAsyncTest.java b/test-functional/src/test/java/com/arangodb/ArangoSearchAsyncTest.java index 27cf4e31e..f06d34f1c 100644 --- a/test-functional/src/test/java/com/arangodb/ArangoSearchAsyncTest.java +++ b/test-functional/src/test/java/com/arangodb/ArangoSearchAsyncTest.java @@ -979,53 +979,54 @@ void collationAnalyzer(ArangoDatabaseAsync db) throws ExecutionException, Interr createGetAndDeleteTypedAnalyzer(db, collationAnalyzer); } - - @ParameterizedTest - @MethodSource("asyncDbs") - void classificationAnalyzer(ArangoDatabaseAsync db) throws ExecutionException, InterruptedException { - assumeTrue(isAtLeastVersion(3, 10)); - assumeTrue(isEnterprise()); - - ClassificationAnalyzerProperties properties = new ClassificationAnalyzerProperties(); - properties.setModelLocation("/tmp/foo.bin"); - properties.setTopK(2); - properties.setThreshold(.5); - - Set features = new HashSet<>(); - features.add(AnalyzerFeature.frequency); - features.add(AnalyzerFeature.norm); - features.add(AnalyzerFeature.position); - - ClassificationAnalyzer analyzer = new ClassificationAnalyzer(); - analyzer.setName("test-" + UUID.randomUUID()); - analyzer.setProperties(properties); - analyzer.setFeatures(features); - - createGetAndDeleteTypedAnalyzer(db, analyzer); - } - - @ParameterizedTest - @MethodSource("asyncDbs") - void nearestNeighborsAnalyzer(ArangoDatabaseAsync db) throws ExecutionException, InterruptedException { - assumeTrue(isAtLeastVersion(3, 10)); - assumeTrue(isEnterprise()); - - NearestNeighborsAnalyzerProperties properties = new NearestNeighborsAnalyzerProperties(); - properties.setModelLocation("/tmp/foo.bin"); - properties.setTopK(2); - - Set features = new HashSet<>(); - features.add(AnalyzerFeature.frequency); - features.add(AnalyzerFeature.norm); - features.add(AnalyzerFeature.position); - - NearestNeighborsAnalyzer analyzer = new NearestNeighborsAnalyzer(); - analyzer.setName("test-" + UUID.randomUUID()); - analyzer.setProperties(properties); - analyzer.setFeatures(features); - - createGetAndDeleteTypedAnalyzer(db, analyzer); - } +// FIXME: allow disable on QA tests +// @ParameterizedTest +// @MethodSource("asyncDbs") +// void classificationAnalyzer(ArangoDatabaseAsync db) throws ExecutionException, InterruptedException { +// assumeTrue(isAtLeastVersion(3, 10)); +// assumeTrue(isEnterprise()); +// +// ClassificationAnalyzerProperties properties = new ClassificationAnalyzerProperties(); +// properties.setModelLocation("/tmp/foo.bin"); +// properties.setTopK(2); +// properties.setThreshold(.5); +// +// Set features = new HashSet<>(); +// features.add(AnalyzerFeature.frequency); +// features.add(AnalyzerFeature.norm); +// features.add(AnalyzerFeature.position); +// +// ClassificationAnalyzer analyzer = new ClassificationAnalyzer(); +// analyzer.setName("test-" + UUID.randomUUID()); +// analyzer.setProperties(properties); +// analyzer.setFeatures(features); +// +// createGetAndDeleteTypedAnalyzer(db, analyzer); +// } + +// FIXME: allow disable on QA tests +// @ParameterizedTest +// @MethodSource("asyncDbs") +// void nearestNeighborsAnalyzer(ArangoDatabaseAsync db) throws ExecutionException, InterruptedException { +// assumeTrue(isAtLeastVersion(3, 10)); +// assumeTrue(isEnterprise()); +// +// NearestNeighborsAnalyzerProperties properties = new NearestNeighborsAnalyzerProperties(); +// properties.setModelLocation("/tmp/foo.bin"); +// properties.setTopK(2); +// +// Set features = new HashSet<>(); +// features.add(AnalyzerFeature.frequency); +// features.add(AnalyzerFeature.norm); +// features.add(AnalyzerFeature.position); +// +// NearestNeighborsAnalyzer analyzer = new NearestNeighborsAnalyzer(); +// analyzer.setName("test-" + UUID.randomUUID()); +// analyzer.setProperties(properties); +// analyzer.setFeatures(features); +// +// createGetAndDeleteTypedAnalyzer(db, analyzer); +// } @ParameterizedTest @MethodSource("asyncDbs") diff --git a/test-functional/src/test/java/com/arangodb/ArangoSearchTest.java b/test-functional/src/test/java/com/arangodb/ArangoSearchTest.java index 0af1e8941..59890c334 100644 --- a/test-functional/src/test/java/com/arangodb/ArangoSearchTest.java +++ b/test-functional/src/test/java/com/arangodb/ArangoSearchTest.java @@ -986,52 +986,54 @@ void collationAnalyzer(ArangoDatabase db) { } - @ParameterizedTest - @MethodSource("dbs") - void classificationAnalyzer(ArangoDatabase db) { - assumeTrue(isAtLeastVersion(3, 10)); - assumeTrue(isEnterprise()); - - ClassificationAnalyzerProperties properties = new ClassificationAnalyzerProperties(); - properties.setModelLocation("/tmp/foo.bin"); - properties.setTopK(2); - properties.setThreshold(.5); - - Set features = new HashSet<>(); - features.add(AnalyzerFeature.frequency); - features.add(AnalyzerFeature.norm); - features.add(AnalyzerFeature.position); - - ClassificationAnalyzer analyzer = new ClassificationAnalyzer(); - analyzer.setName("test-" + UUID.randomUUID()); - analyzer.setProperties(properties); - analyzer.setFeatures(features); - - createGetAndDeleteTypedAnalyzer(db, analyzer); - } - - @ParameterizedTest - @MethodSource("dbs") - void nearestNeighborsAnalyzer(ArangoDatabase db) { - assumeTrue(isAtLeastVersion(3, 10)); - assumeTrue(isEnterprise()); - - NearestNeighborsAnalyzerProperties properties = new NearestNeighborsAnalyzerProperties(); - properties.setModelLocation("/tmp/foo.bin"); - properties.setTopK(2); - - Set features = new HashSet<>(); - features.add(AnalyzerFeature.frequency); - features.add(AnalyzerFeature.norm); - features.add(AnalyzerFeature.position); - - NearestNeighborsAnalyzer analyzer = new NearestNeighborsAnalyzer(); - analyzer.setName("test-" + UUID.randomUUID()); - analyzer.setProperties(properties); - analyzer.setFeatures(features); - - createGetAndDeleteTypedAnalyzer(db, analyzer); - } +// FIXME: allow disable on QA tests +// @ParameterizedTest +// @MethodSource("dbs") +// void classificationAnalyzer(ArangoDatabase db) { +// assumeTrue(isAtLeastVersion(3, 10)); +// assumeTrue(isEnterprise()); +// +// ClassificationAnalyzerProperties properties = new ClassificationAnalyzerProperties(); +// properties.setModelLocation("/tmp/foo.bin"); +// properties.setTopK(2); +// properties.setThreshold(.5); +// +// Set features = new HashSet<>(); +// features.add(AnalyzerFeature.frequency); +// features.add(AnalyzerFeature.norm); +// features.add(AnalyzerFeature.position); +// +// ClassificationAnalyzer analyzer = new ClassificationAnalyzer(); +// analyzer.setName("test-" + UUID.randomUUID()); +// analyzer.setProperties(properties); +// analyzer.setFeatures(features); +// +// createGetAndDeleteTypedAnalyzer(db, analyzer); +// } + +// FIXME: allow disable on QA tests +// @ParameterizedTest +// @MethodSource("dbs") +// void nearestNeighborsAnalyzer(ArangoDatabase db) { +// assumeTrue(isAtLeastVersion(3, 10)); +// assumeTrue(isEnterprise()); +// +// NearestNeighborsAnalyzerProperties properties = new NearestNeighborsAnalyzerProperties(); +// properties.setModelLocation("/tmp/foo.bin"); +// properties.setTopK(2); +// +// Set features = new HashSet<>(); +// features.add(AnalyzerFeature.frequency); +// features.add(AnalyzerFeature.norm); +// features.add(AnalyzerFeature.position); +// +// NearestNeighborsAnalyzer analyzer = new NearestNeighborsAnalyzer(); +// analyzer.setName("test-" + UUID.randomUUID()); +// analyzer.setProperties(properties); +// analyzer.setFeatures(features); +// +// createGetAndDeleteTypedAnalyzer(db, analyzer); +// } @ParameterizedTest @MethodSource("dbs")