Skip to content

Commit d8e8ba4

Browse files
committed
test: delete server-related assertion
This test simply checks that server returns some string exactly, which is based _entirely_ on how the server is configured and has no relation to the client-side logic. It is deserialized in and Object, so there is no special behavior to verify. The assertion does fail with v1.33.0-rc.0 though, because the server started returning a different string. Once again, this string is not something that affects client behavior in any way.
1 parent d372d5e commit d8e8ba4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package io.weaviate.integration.tests.misc;
22

3-
import io.weaviate.client.base.Result;
4-
import io.weaviate.client.v1.misc.model.Meta;
53
import static io.weaviate.integration.client.WeaviateVersion.EXPECTED_WEAVIATE_VERSION;
64
import static org.junit.Assert.assertEquals;
75
import static org.junit.Assert.assertNotNull;
86
import static org.junit.Assert.assertNull;
97
import static org.junit.Assert.assertTrue;
108

9+
import io.weaviate.client.base.Result;
10+
import io.weaviate.client.v1.misc.model.Meta;
11+
1112
public class MiscTestSuite {
1213
public static void assertLivenessOrReadiness(Result<Boolean> result) {
1314
assertNotNull(result);
@@ -19,8 +20,5 @@ public static void assertMeta(Result<Meta> meta) {
1920
assertNull(meta.getError());
2021
assertEquals("http://[::]:8080", meta.getResult().getHostname());
2122
assertEquals(EXPECTED_WEAVIATE_VERSION, meta.getResult().getVersion());
22-
assertEquals("{backup-filesystem={backupsPath=/tmp/backups}, " +
23-
"generative-openai={documentationHref=https://platform.openai.com/docs/api-reference/completions, name=Generative Search - OpenAI}, " +
24-
"text2vec-contextionary={version=en0.16.0-v1.2.1, wordCount=818072.0}}", meta.getResult().getModules().toString());
2523
}
2624
}

0 commit comments

Comments
 (0)