From 4cabad6bae9c2bd5eec14156368f3ee804a3da8b Mon Sep 17 00:00:00 2001 From: Cristina Yenyxe Gonzalez Garcia Date: Mon, 18 May 2020 15:27:52 +0100 Subject: [PATCH] Using test names instead of hardcoded ones in integration/container directory Signed-off-by: Cristina Yenyxe Gonzalez Garcia --- integration/container/export_test.go | 3 ++- integration/container/inspect_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/integration/container/export_test.go b/integration/container/export_test.go index 756442a600..bcf85cf0c0 100644 --- a/integration/container/export_test.go +++ b/integration/container/export_test.go @@ -3,6 +3,7 @@ package container // import "github.com/docker/docker/integration/container" import ( "context" "encoding/json" + "strings" "testing" "time" @@ -28,7 +29,7 @@ func TestExportContainerAndImportImage(t *testing.T) { cID := container.Run(ctx, t, client, container.WithCmd("true")) poll.WaitOn(t, container.IsStopped(ctx, client, cID), poll.WithDelay(100*time.Millisecond)) - reference := "repo/testexp:v1" + reference := "repo/" + strings.ToLower(t.Name()) + ":v1" exportResp, err := client.ContainerExport(ctx, cID) assert.NilError(t, err) importResp, err := client.ImageImport(ctx, types.ImageImportSource{ diff --git a/integration/container/inspect_test.go b/integration/container/inspect_test.go index 4b7418adf2..f8606a3b09 100644 --- a/integration/container/inspect_test.go +++ b/integration/container/inspect_test.go @@ -3,6 +3,7 @@ package container // import "github.com/docker/docker/integration/container" import ( "context" "encoding/json" + "strings" "testing" "time" @@ -22,7 +23,7 @@ func TestInspectCpusetInConfigPre120(t *testing.T) { client := request.NewAPIClient(t, client.WithVersion("1.19")) ctx := context.Background() - name := "cpusetinconfig-pre120-" + t.Name() + name := strings.ToLower(t.Name()) // Create container with up to-date-API container.Run(ctx, t, request.NewAPIClient(t), container.WithName(name), container.WithCmd("true"),