Skip to content

Commit

Permalink
add string interpolated variable to registry.go test fixture (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaHyh authored Sep 7, 2023
1 parent 1b994ab commit f7428be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func TestReadRegistries(t *testing.T) {
}

is.Equal(ves, service.Service{
Entrypoint: []string{"bash", "entrypoints/docker.sh"},
Entrypoint: []string{"bash", "entrypoints/docker.sh", "/home/test/.tb"},
EnvFile: "/home/test/.tb/repos/ExampleZone/venue-example-service/.env.compose",
EnvVars: map[string]string{
"HTTP_PORT": "8000",
Expand Down
8 changes: 4 additions & 4 deletions registry/testdata/registry-2/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ services:
POSTGRES_PASSWORD: password
mode: remote
ports:
- '5432:5432'
- "5432:5432"
remote:
image: postgres
tag: '12'
tag: "12"
volumes:
- value: postgres:/var/lib/postgresql/data
named: true
venue-example-service:
entrypoint: ["bash", "entrypoints/docker.sh"]
entrypoint: ["bash", "entrypoints/docker.sh", "${@ROOTPATH}"]
envFile: ${@REPOPATH}/.env.compose
envVars:
HTTP_PORT: 8000
POSTGRES_HOST: ${@postgres}
mode: remote
ports:
- '9000:8000'
- "9000:8000"
preRun: yarn db:prepare:dev
repo:
name: ExampleZone/venue-example-service
Expand Down

0 comments on commit f7428be

Please sign in to comment.