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 #1330

Merged
merged 18 commits into from
Apr 10, 2024
Merged

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Apr 10, 2024

Duplicate of #1329 (had to reopen due to GitHub UI merge bug)

Description of Changes

The goal of this PR is to replace usage of remotetest and gretty in netcdf-java with TestContainers. The TestContainer uses docker to start/stop the dts and d4ts war files.

Additional notes:

Originally I tried to use a category for all tests that now need docker to be able to choose to exclude them. However, this did not work correctly with @parameterized tests, as these classes are still initialized even when the category would make them excluded. If they refer to the docker server in their static fields then they would fail to initialize due to docker not being present. So here I use the less nice solution of excluding the entire package of tests that need docker when -DskipDockerTests=True is given.
In the docker file, when I used the d4ts-5.4.war file there were some issues which were resolved with the 5.5-SNAPSHOT. That snapshot, however, will only be on nexus for a short while so we will have to update this in the next few weeks. Hopefully soon we can switch this to the 5.5 release.
For now we will have to exclude the docker tests on Jenkins using -DskipDockerTests=True

@tdrwenski tdrwenski merged commit 61c11ec into Unidata:maint-5.x Apr 10, 2024
31 checks passed
@tdrwenski tdrwenski deleted the use-test-containers-2 branch April 10, 2024 20:21
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.

None yet

2 participants