Skip to content

Commit

Permalink
(#25) Use lowercase for container/service identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Sep 18, 2019
1 parent 38810f1 commit 94069c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewLocalDockerCompose(filePath string, identifier string) *LocalDockerCompo
}

dc.ComposeFilePath = filePath
dc.Identifier = identifier
dc.Identifier = strings.ToLower(identifier)

return dc
}
Expand Down
7 changes: 5 additions & 2 deletions compose_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package testcontainers

import "testing"
import (
"strings"
"testing"
)

func TestLocalDockerCompose(t *testing.T) {
path := "./testresources/docker-compose.yml"

identifier := RandomString(6)
identifier := strings.ToLower(RandomString(6))

compose := NewLocalDockerCompose(path, identifier)

Expand Down

0 comments on commit 94069c6

Please sign in to comment.