File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
main/java/org/testcontainers/weaviate
test/java/org/testcontainers/weaviate Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ dependencies {
44 api project(' :testcontainers' )
55
66 testImplementation ' org.assertj:assertj-core:3.25.1'
7- testImplementation ' io.weaviate:client:4.5.1 '
7+ testImplementation ' io.weaviate:client:4.6.0 '
88}
Original file line number Diff line number Diff line change @@ -33,4 +33,8 @@ public WeaviateContainer(DockerImageName dockerImageName) {
3333 public String getHttpHostAddress () {
3434 return getHost () + ":" + getMappedPort (8080 );
3535 }
36+
37+ public String getGrpcHostAddress () {
38+ return getHost () + ":" + getMappedPort (50051 );
39+ }
3640}
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ public class WeaviateContainerTest {
1313 @ Test
1414 public void test () {
1515 try ( // container {
16- WeaviateContainer weaviate = new WeaviateContainer ("semitechnologies/weaviate:1.22.4 " )
16+ WeaviateContainer weaviate = new WeaviateContainer ("semitechnologies/weaviate:1.24.1 " )
1717 // }
1818 ) {
1919 weaviate .start ();
20- WeaviateClient client = new WeaviateClient (new Config ("http" , weaviate .getHttpHostAddress ()));
20+ Config config = new Config ("http" , weaviate .getHttpHostAddress ());
21+ config .setGRPCHost (weaviate .getGrpcHostAddress ());
22+ WeaviateClient client = new WeaviateClient (config );
2123 Result <Meta > meta = client .misc ().metaGetter ().run ();
22- assertThat (meta .getResult ().getVersion ()).isEqualTo ("1.22.4 " );
24+ assertThat (meta .getResult ().getVersion ()).isEqualTo ("1.24.1 " );
2325 }
2426 }
2527}
You can’t perform that action at this time.
0 commit comments