-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sarah Funkhouser <[email protected]>
- Loading branch information
1 parent
df941cf
commit 8079a13
Showing
11 changed files
with
80 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
RIVERBOAT_REFRESHINTERVAL="10m" | ||
RIVERBOAT_JOBQUEUE_DATABASEHOST="postgres://postgres:[email protected]:5432/jobs?sslmode=disable" | ||
RIVERBOAT_JOBQUEUE_QUEUES="" | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_DEVMODE="true" | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_TESTDIR="fixtures/email" | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_TOKEN="" | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_FROMEMAIL="[email protected]" | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_ENABLED="true" | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_BASEURL="http://localhost:1337" | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_ENDPOINT="query" | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_DEBUG="false" | ||
RIVERBOAT_RIVER_DATABASEHOST="postgres://postgres:[email protected]:5432/jobs?sslmode=disable" | ||
RIVERBOAT_RIVER_QUEUES="" | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_DEVMODE="true" | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_TESTDIR="fixtures/email" | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_TOKEN="" | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_FROMEMAIL="[email protected]" | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_ENABLED="true" | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_BASEURL="http://localhost:1337" | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_ENDPOINT="query" | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_DEBUG="false" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
jobQueue: | ||
refreshInterval: 600000000000 | ||
river: | ||
databaseHost: postgres://postgres:[email protected]:5432/jobs?sslmode=disable | ||
queues: null | ||
workers: | ||
|
@@ -9,9 +10,8 @@ jobQueue: | |
enabled: true | ||
endpoint: query | ||
emailWorker: | ||
email: | ||
config: | ||
devMode: true | ||
fromEmail: [email protected] | ||
testDir: fixtures/email | ||
token: "" | ||
refreshInterval: 600000000000 |
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 |
---|---|---|
|
@@ -11,13 +11,13 @@ metadata: | |
{{- end }} | ||
data: | ||
RIVERBOAT_REFRESHINTERVAL: {{ .Values.riverboat.refreshInterval | default "10m" }} | ||
RIVERBOAT_JOBQUEUE_DATABASEHOST: {{ .Values.riverboat.jobQueue.databaseHost | default "postgres://postgres:[email protected]:5432/jobs?sslmode=disable" }} | ||
RIVERBOAT_JOBQUEUE_QUEUES: {{ .Values.riverboat.jobQueue.queues }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_DEVMODE: {{ .Values.riverboat.jobQueue.workers.emailWorker.devMode | default true }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_TESTDIR: {{ .Values.riverboat.jobQueue.workers.emailWorker.testDir | default "fixtures/email" }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_TOKEN: {{ .Values.riverboat.jobQueue.workers.emailWorker.token }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_EMAILWORKER_FROMEMAIL: {{ .Values.riverboat.jobQueue.workers.emailWorker.fromEmail | default "[email protected]" }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_ENABLED: {{ .Values.riverboat.jobQueue.workers.databaseWorker.config.enabled | default true }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_BASEURL: {{ .Values.riverboat.jobQueue.workers.databaseWorker.config.baseUrl | default "http://localhost:1337" }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_ENDPOINT: {{ .Values.riverboat.jobQueue.workers.databaseWorker.config.endpoint | default "query" }} | ||
RIVERBOAT_JOBQUEUE_WORKERS_DATABASEWORKER_CONFIG_DEBUG: {{ .Values.riverboat.jobQueue.workers.databaseWorker.config.debug | default false }} | ||
RIVERBOAT_RIVER_DATABASEHOST: {{ .Values.riverboat.river.databaseHost | default "postgres://postgres:[email protected]:5432/jobs?sslmode=disable" }} | ||
RIVERBOAT_RIVER_QUEUES: {{ .Values.riverboat.river.queues }} | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_DEVMODE: {{ .Values.riverboat.river.workers.emailWorker.config.devMode | default true }} | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_TESTDIR: {{ .Values.riverboat.river.workers.emailWorker.config.testDir | default "fixtures/email" }} | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_TOKEN: {{ .Values.riverboat.river.workers.emailWorker.config.token }} | ||
RIVERBOAT_RIVER_WORKERS_EMAILWORKER_CONFIG_FROMEMAIL: {{ .Values.riverboat.river.workers.emailWorker.config.fromEmail | default "[email protected]" }} | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_ENABLED: {{ .Values.riverboat.river.workers.databaseWorker.config.enabled | default true }} | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_BASEURL: {{ .Values.riverboat.river.workers.databaseWorker.config.baseUrl | default "http://localhost:1337" }} | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_ENDPOINT: {{ .Values.riverboat.river.workers.databaseWorker.config.endpoint | default "query" }} | ||
RIVERBOAT_RIVER_WORKERS_DATABASEWORKER_CONFIG_DEBUG: {{ .Values.riverboat.river.workers.databaseWorker.config.debug | default false }} |
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
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ func (suite *TestSuite) TestEmailWorker() { | |
{ | ||
name: "happy path, dev mode", | ||
worker: &jobs.EmailWorker{ | ||
EmailConfig: jobs.EmailConfig{ | ||
Config: jobs.EmailConfig{ | ||
DevMode: true, | ||
TestDir: "test", | ||
FromEmail: "[email protected]", | ||
|
@@ -43,7 +43,7 @@ func (suite *TestSuite) TestEmailWorker() { | |
{ | ||
name: "missing test directory", | ||
worker: &jobs.EmailWorker{ | ||
EmailConfig: jobs.EmailConfig{ | ||
Config: jobs.EmailConfig{ | ||
DevMode: true, | ||
FromEmail: "[email protected]", | ||
}, | ||
|
@@ -54,7 +54,7 @@ func (suite *TestSuite) TestEmailWorker() { | |
{ | ||
name: "missing from email", | ||
worker: &jobs.EmailWorker{ | ||
EmailConfig: jobs.EmailConfig{ | ||
Config: jobs.EmailConfig{ | ||
DevMode: true, | ||
TestDir: "test", | ||
}, | ||
|
@@ -65,7 +65,7 @@ func (suite *TestSuite) TestEmailWorker() { | |
{ | ||
name: "happy path, missing from email but in message", | ||
worker: &jobs.EmailWorker{ | ||
EmailConfig: jobs.EmailConfig{ | ||
Config: jobs.EmailConfig{ | ||
DevMode: true, | ||
TestDir: "test", | ||
}, | ||
|
@@ -75,7 +75,7 @@ func (suite *TestSuite) TestEmailWorker() { | |
{ | ||
name: "missing token", | ||
worker: &jobs.EmailWorker{ | ||
EmailConfig: jobs.EmailConfig{ | ||
Config: jobs.EmailConfig{ | ||
DevMode: false, | ||
FromEmail: "[email protected]", | ||
}, | ||
|
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ func main() { | |
newman.WithSubject("test subject"), | ||
newman.WithText("body"), | ||
newman.WithTo([]string{"[email protected]"}), | ||
newman.WithFrom("[email protected]"), | ||
) | ||
|
||
_, err := client.Insert(context.Background(), jobs.EmailArgs{ | ||
|