Skip to content

service/start-odk: fix DB_SSL check in non docker-compose envs - #2064

Merged
alxndrsn merged 2 commits into
getodk:nextfrom
alxndrsn:service-non-compose
Jul 11, 2026
Merged

service/start-odk: fix DB_SSL check in non docker-compose envs#2064
alxndrsn merged 2 commits into
getodk:nextfrom
alxndrsn:service-non-compose

Conversation

@alxndrsn

Copy link
Copy Markdown
Contributor

Closes #2063

What has been done to verify that this works as intended?

New test.

Why is this the best possible solution? Were any other approaches considered?

It doesn't change behaviour when using docker compose, but should fix the problem for environments where it's really possible to not have any value for DB_SSL.

How does this change impact users? Describe intentional behavior changes from code updates. What are the regression risks?

Fixes a bug.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

const stdcombi = [];

const process = spawn('docker', [ 'compose', 'run', ...args, 'service' ], { cwd:'..' });
const process = spawn('docker', [ 'compose', ...args, 'service' ], { cwd:'..' });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The new test required a change to where args can be inserted.

Comment thread test/package.json
"test:nginx:mocha": "NODE_TLS_REJECT_UNAUTHORIZED=0 mocha './nginx/src/mocha/**/*.spec.js' --require ./nginx/src/mocha/mocha.setup.js",
"test:nginx:playwright": "NODE_TLS_REJECT_UNAUTHORIZED=0 playwright test",
"test:service": "mocha ./service.spec.js",
"test:service": "mocha ./service/service.spec.js",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change is just to organise the service tests better, now that these tests span more than one file.

Comment thread files/service/scripts/start-odk.sh Outdated
@alxndrsn
alxndrsn merged commit 348b9c9 into getodk:next Jul 11, 2026
7 checks passed
@alxndrsn
alxndrsn deleted the service-non-compose branch July 11, 2026 07:42
@alxndrsn alxndrsn changed the title service/start-odk: fix DB_SSL check in non envs service/start-odk: fix DB_SSL check in non docker-compose envs Jul 13, 2026
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