-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Unify task runner env vars
- Rename `N8N_TASK_BROKER_URI` to `N8N_RUNNERS_TASK_BROKER_URI` - Rename `N8N_RUNNERS_SERVER_ENABLED` to `N8N_RUNNERS_HEALTH_CHECK_SERVER_ENABLED`
- Loading branch information
Showing
5 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,9 +35,9 @@ func TestLoadConfig(t *testing.T) { | |
name: "valid configuration", | ||
configContent: validConfigContent, | ||
envVars: map[string]string{ | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_TASK_BROKER_URI": "http://localhost:5679", | ||
"SENTRY_DSN": "https://[email protected]/123", | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_RUNNERS_TASK_BROKER_URI": "http://localhost:5679", | ||
"SENTRY_DSN": "https://[email protected]/123", | ||
}, | ||
runnerType: "javascript", | ||
expectedError: false, | ||
|
@@ -46,9 +46,9 @@ func TestLoadConfig(t *testing.T) { | |
name: "valid configuration", | ||
configContent: validConfigContent, | ||
envVars: map[string]string{ | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_TASK_BROKER_URI": "http://127.0.0.1:5679", | ||
"SENTRY_DSN": "https://[email protected]/123", | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_RUNNERS_TASK_BROKER_URI": "http://127.0.0.1:5679", | ||
"SENTRY_DSN": "https://[email protected]/123", | ||
}, | ||
runnerType: "javascript", | ||
expectedError: false, | ||
|
@@ -92,8 +92,8 @@ func TestConfigFileErrors(t *testing.T) { | |
configContent: "invalid json", | ||
expectedError: "failed to parse config file", | ||
envVars: map[string]string{ | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_TASK_BROKER_URI": "http://localhost:5679", | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_RUNNERS_TASK_BROKER_URI": "http://localhost:5679", | ||
}, | ||
}, | ||
{ | ||
|
@@ -103,8 +103,8 @@ func TestConfigFileErrors(t *testing.T) { | |
}`, | ||
expectedError: "found no task runner configs", | ||
envVars: map[string]string{ | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_TASK_BROKER_URI": "http://localhost:5679", | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_RUNNERS_TASK_BROKER_URI": "http://localhost:5679", | ||
}, | ||
}, | ||
{ | ||
|
@@ -120,8 +120,8 @@ func TestConfigFileErrors(t *testing.T) { | |
}`, | ||
expectedError: "does not contain requested runner type: javascript", | ||
envVars: map[string]string{ | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_TASK_BROKER_URI": "http://localhost:5679", | ||
"N8N_RUNNERS_AUTH_TOKEN": "test-token", | ||
"N8N_RUNNERS_TASK_BROKER_URI": "http://localhost:5679", | ||
}, | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters