Skip to content

Commit

Permalink
ref(tests): move exported Test* funcs to top of files and tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Aug 7, 2014
1 parent bd024ec commit 9232c6d
Show file tree
Hide file tree
Showing 21 changed files with 262 additions and 659 deletions.
2 changes: 1 addition & 1 deletion builder/tests/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestBuilder(t *testing.T) {
"/deis/domains",
"/deis/services",
}
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/builder:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cache/tests/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func runDeisCacheTest(
}

func TestCache(t *testing.T) {
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/cache:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion controller/tests/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestController(t *testing.T) {
"/deis/registry",
"/deis/domains",
}
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/controller:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion database/tests/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func runDeisDatabaseTest(
}

func TestDatabase(t *testing.T) {
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/database:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion logger/tests/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func runDeisLoggerTest(
}

func TestLogger(t *testing.T) {
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/logger:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion registry/tests/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestRegistry(t *testing.T) {
setdir := []string{
"/deis/cache",
}
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/registry:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion router/tests/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestRouter(t *testing.T) {
"/deis/builder",
"/deis/domains",
}
testID := utils.NewUuid()
testID := utils.NewID()
err := dockercliutils.BuildImage(t, "../", "deis/router:"+testID)
if err != nil {
t.Fatal(err)
Expand Down
20 changes: 0 additions & 20 deletions tests/_vendor/src/github.com/satori/go.uuid/LICENSE

This file was deleted.

Loading

0 comments on commit 9232c6d

Please sign in to comment.