Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Testcontainers Weaviate module #263

Merged
merged 6 commits into from
Mar 4, 2024

Conversation

eddumelendez
Copy link
Contributor

Testcontainers 1.19.6 provides a weaviate module.

@weaviate-git-bot
Copy link

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@eddumelendez
Copy link
Contributor Author

I agree

public static DockerComposeContainer compose = new DockerComposeContainer(
new File("src/test/resources/docker-compose-azure.yaml")
).withExposedService("weaviate-auth-azure_1", 8081, Wait.forHttp("/v1/.well-known/openid-configuration").forStatusCode(200));
public static WeaviateContainer weaviate = new WeaviateWithAzureContainer("semitechnologies/weaviate:1.23.1");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great to set Weaviate docker version in one place. We use EXPECTED_WEAVIATE_VERSION to check a current version, we can use this to pass a docker image:

String.format("semitechnologies/weaviate:%s", EXPECTED_WEAVIATE_VERSION)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this in all containers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@antas-marcin
Copy link
Collaborator

@eddumelendez great PR! Could you rebase your PR against our lastest main?

@eddumelendez
Copy link
Contributor Author

@antas-marcin changes have been applied.

@antas-marcin
Copy link
Collaborator

@eddumelendez thank you for such a quick response! Your changes look great! Once the tests are green I will merge your PR.

Thank you for you contribution!

@antas-marcin antas-marcin merged commit 7e7fea6 into weaviate:main Mar 4, 2024
2 checks passed
@eddumelendez eddumelendez deleted the testcontainers branch March 4, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants