Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/qdrant/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ description = "Testcontainers :: Qdrant"
dependencies {
api project(':testcontainers')

testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'io.qdrant:client:1.15.0'
testImplementation platform('io.grpc:grpc-bom:1.73.0')
testImplementation 'io.grpc:grpc-stub'
testImplementation 'io.grpc:grpc-protobuf'
testImplementation 'io.grpc:grpc-netty-shaded'
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import io.qdrant.client.QdrantClient;
import io.qdrant.client.QdrantGrpcClient;
import io.qdrant.client.grpc.QdrantOuterClass;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.testcontainers.images.builder.Transferable;

import java.util.UUID;
Expand All @@ -12,10 +12,10 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

public class QdrantContainerTest {
class QdrantContainerTest {

@Test
public void shouldReturnVersion() throws ExecutionException, InterruptedException {
void shouldReturnVersion() throws ExecutionException, InterruptedException {
try (
// qdrantContainer {
QdrantContainer qdrant = new QdrantContainer("qdrant/qdrant:v1.7.4")
Expand All @@ -34,7 +34,7 @@ public void shouldReturnVersion() throws ExecutionException, InterruptedExceptio
}

@Test
public void shouldSetApiKey() throws ExecutionException, InterruptedException {
void shouldSetApiKey() throws ExecutionException, InterruptedException {
String apiKey = UUID.randomUUID().toString();
try (QdrantContainer qdrant = new QdrantContainer("qdrant/qdrant:v1.7.4").withApiKey(apiKey)) {
qdrant.start();
Expand All @@ -59,7 +59,7 @@ public void shouldSetApiKey() throws ExecutionException, InterruptedException {
}

@Test
public void shouldSetApiKeyUsingConfigFile() throws ExecutionException, InterruptedException {
void shouldSetApiKeyUsingConfigFile() throws ExecutionException, InterruptedException {
String apiKey = UUID.randomUUID().toString();
String configFile = "service:\n api_key: " + apiKey;
try (
Expand Down
Loading