Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/e2e/stovepipe/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ go_test(
"suite_test.go",
],
data = [
"docker-compose.e2e.yml",
"queues.yaml",
"//platform/extension/counter/mysql/schema",
"//platform/extension/messagequeue/mysql/schema",
"//service/stovepipe:docker-compose.yml",
Expand Down
8 changes: 8 additions & 0 deletions test/e2e/stovepipe/docker-compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
stovepipe-service:
command: ["./stovepipe", "-config", "/etc/stovepipe/queues.yaml"]
volumes:
- type: bind
source: ${REPO_ROOT}/test/e2e/stovepipe/queues.yaml
target: /etc/stovepipe/queues.yaml
read_only: true
11 changes: 11 additions & 0 deletions test/e2e/stovepipe/queues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
stages:
process:
gateWaitDelay: 250ms
buildSignal:
acceptedPollDelay: 250ms
runningPollDelay: 250ms
buildAnalysis:
pollDelay: 250ms
issueTrack:
refreshDelay: 250ms
recoveryWaitDelay: 250ms
12 changes: 10 additions & 2 deletions test/e2e/stovepipe/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ func (s *StovepipeE2ESuite) SetupSuite() {
s.log.Logf("Starting Stovepipe e2e test suite using docker-compose")

composeFile := testutil.Runfile("service/stovepipe/docker-compose.yml")
s.stack = testutil.NewComposeStack(t, s.log, s.ctx, composeFile, "e2e-stovepipe",
s.stack = testutil.NewComposeStack(
t,
s.log,
s.ctx,
composeFile,
"e2e-stovepipe",
testutil.WithOverlay(testutil.Runfile("test/e2e/stovepipe/docker-compose.e2e.yml")),
testutil.WithBuildContext(map[string]string{
".docker-bin/stovepipe": "service/stovepipe/server/stovepipe_linux",
"service/stovepipe/server/Dockerfile": "service/stovepipe/server/Dockerfile",
}))
"test/e2e/stovepipe/queues.yaml": "test/e2e/stovepipe/queues.yaml",
}),
)

err := s.stack.Up("mysql-app", "mysql-queue")
require.NoError(t, err, "failed to start compose stack")
Expand Down