Skip to content

ANW-2966 build: Allow overriding test DB host/port - #2

Open
awilfox wants to merge 1 commit into
ANW-2833from
awilfox/ANW-2966-test-env
Open

ANW-2966 build: Allow overriding test DB host/port#2
awilfox wants to merge 1 commit into
ANW-2833from
awilfox/ANW-2966-test-env

Conversation

@awilfox

@awilfox awilfox commented Sep 8, 2026

Copy link
Copy Markdown
Member

Related Ticket (JIRA or GitHub Issue)

[ANW-2966]

Summary

Running db:load:test or db:dump:test used a hardcoded localhost database server.

This caused issues running the database tasks in Docker as part of the test build.

Therefore, this change allows users to override the host/port of the test database using environment variables.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change, for example API endpoint renaming)
  • My change requires a change to the documentation - If so elaborate:

Checklist:

  • I have read and agree to the CONTRIBUTING document.
  • I have authority to submit this code. - See our licensing
  • Have you added tests to cover these changes? If not why:
    The test suite could not run before in Docker, and can now, so that itself is a test.

This change allows the environment to override the host and port used
for connecting to the test database.  The defaults are set to the values
originally used, so there should be no functional change for those who
do not explicitly set the environment variables.

Also adds an option to skip TLS certificate verification for the test
database load only.  Since this is a write operation for test fixtures
only (no sensitive data is used, and no data is read nor trusted), this
should not be a security risk.
@awilfox awilfox self-assigned this Sep 8, 2026
@awilfox

awilfox commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Since I can't find an upstream reference for the merge request they mentioned in the Jira ticket, I opened this so that we can show the ArchivesSpace team what I worked on if they need it.

@davezuckerman

Copy link
Copy Markdown

This looks good but do we want to wait and see what changes were made with ANW-2966 first?

@awilfox

awilfox commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Yeah, this is mostly so that we have something to show them if we need to. Like I said, while their tracker says "request opened" I don't see it on the public repo so I don't know what they are actually fixing. It could be the GeckoDriver version update, it could be this build stuff, it could be both, or even neither if they are just wanting to update the DOCKER_DEV.md file.

@anarchivist anarchivist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r+. great find.

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