From 3ba51725be00715492cec5f061896a2e553889e3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 26 Apr 2026 04:32:10 -0400 Subject: [PATCH] fix(tests): adapt app.json fixtures and tini test for env processing Pre-set LOCAL_DOMAIN in the tini test so mastodon's required env var resolves, and replace unsupported `generator: "echo 5"` with `value: "5"` in the nodejs-express and dockerfile fixtures so WEB_CONCURRENCY no longer aborts deploys via the new app.json env processor. --- tests/apps/dockerfile/app.json | 2 +- tests/apps/nodejs-express/app.json | 2 +- tests/unit/app-json.bats | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/apps/dockerfile/app.json b/tests/apps/dockerfile/app.json index 39127109e..e1b65e4e0 100644 --- a/tests/apps/dockerfile/app.json +++ b/tests/apps/dockerfile/app.json @@ -11,7 +11,7 @@ }, "WEB_CONCURRENCY": { "description": "The number of processes to run.", - "generator": "echo 5" + "value": "5" } }, "healthchecks": { diff --git a/tests/apps/nodejs-express/app.json b/tests/apps/nodejs-express/app.json index 5eb61f5f5..702f97410 100644 --- a/tests/apps/nodejs-express/app.json +++ b/tests/apps/nodejs-express/app.json @@ -16,7 +16,7 @@ }, "WEB_CONCURRENCY": { "description": "The number of processes to run.", - "generator": "echo 5" + "value": "5" } }, "healthchecks": { diff --git a/tests/unit/app-json.bats b/tests/unit/app-json.bats index 4c899d979..0a0410cfa 100644 --- a/tests/unit/app-json.bats +++ b/tests/unit/app-json.bats @@ -139,7 +139,7 @@ teardown() { assert_success fi - run /bin/bash -c "dokku config:set $TEST_APP SECRET_KEY_BASE=derp OTP_SECRET=1234" + run /bin/bash -c "dokku config:set $TEST_APP SECRET_KEY_BASE=derp OTP_SECRET=1234 LOCAL_DOMAIN=dokku.me" echo "output: $output" echo "status: $status" assert_success