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 to allow for local testing. #76

Merged

Conversation

HarryCordewener
Copy link
Contributor

@HarryCordewener HarryCordewener commented Oct 30, 2024

This uses TestContainers to create a local ArangoDB Docker Container during the Unit Test run, and then automatically disposes of it afterwards.

This removes the need for the scripts in the docker folder, and allows anyone who has Docker Desktop installed to easily run Unit Tests, and get immediate feedback.

Successful Run on my Remote as well:
https://github.com/harrycordewener/dotnet-arangodb/actions/runs/11585570942/job/32254711741

This is not compatible with Clusters at this time.
It does not look like a Cluster can be tested with the base image for ArangoDB.
…wn the line.

Edit Build.yml to run against 3.11, which was the original tested-against server.
Comment on lines +72 to +75
// This is not yet tested. But is a largely compatible replication of the start_db_cluster script.
// 2024-10-29 20:11:32 Error while processing command-line options for arangod:
// 2024 - 10 - 29 20:11:32 unknown option '--cluster.start-dbserver false'
// I suspect that's because Cluster is only available for Enterprise?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Take note of this.
This option is indeed not available in the main image of ArangoDB for arangod.

@HarryCordewener HarryCordewener marked this pull request as ready for review October 30, 2024 02:49
@coronabytes coronabytes changed the base branch from master to dev/testcontainers November 7, 2024 20:10
@coronabytes coronabytes merged commit 094ae50 into coronabytes:dev/testcontainers Nov 7, 2024
2 checks passed
@HarryCordewener HarryCordewener deleted the use-testcontainers branch November 7, 2024 21:15
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.

2 participants