Bladeren bron

Use prefix naming for rm tests

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Alexandr Morozov 10 jaren geleden
bovenliggende
commit
cc54b77fce
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      integration-cli/docker_cli_rm_test.go

+ 6 - 6
integration-cli/docker_cli_rm_test.go

@@ -7,7 +7,7 @@ import (
 	"testing"
 	"testing"
 )
 )
 
 
-func TestRemoveContainerWithRemovedVolume(t *testing.T) {
+func TestRmContainerWithRemovedVolume(t *testing.T) {
 	cmd := exec.Command(dockerBinary, "run", "--name", "losemyvolumes", "-v", "/tmp/testing:/test", "busybox", "true")
 	cmd := exec.Command(dockerBinary, "run", "--name", "losemyvolumes", "-v", "/tmp/testing:/test", "busybox", "true")
 	if _, err := runCommand(cmd); err != nil {
 	if _, err := runCommand(cmd); err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
@@ -27,7 +27,7 @@ func TestRemoveContainerWithRemovedVolume(t *testing.T) {
 	logDone("rm - removed volume")
 	logDone("rm - removed volume")
 }
 }
 
 
-func TestRemoveContainerWithVolume(t *testing.T) {
+func TestRmContainerWithVolume(t *testing.T) {
 	cmd := exec.Command(dockerBinary, "run", "--name", "foo", "-v", "/srv", "busybox", "true")
 	cmd := exec.Command(dockerBinary, "run", "--name", "foo", "-v", "/srv", "busybox", "true")
 	if _, err := runCommand(cmd); err != nil {
 	if _, err := runCommand(cmd); err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
@@ -43,7 +43,7 @@ func TestRemoveContainerWithVolume(t *testing.T) {
 	logDone("rm - volume")
 	logDone("rm - volume")
 }
 }
 
 
-func TestRemoveRunningContainer(t *testing.T) {
+func TestRmRunningContainer(t *testing.T) {
 	createRunningContainer(t, "foo")
 	createRunningContainer(t, "foo")
 
 
 	// Test cannot remove running container
 	// Test cannot remove running container
@@ -57,7 +57,7 @@ func TestRemoveRunningContainer(t *testing.T) {
 	logDone("rm - running container")
 	logDone("rm - running container")
 }
 }
 
 
-func TestForceRemoveRunningContainer(t *testing.T) {
+func TestRmForceRemoveRunningContainer(t *testing.T) {
 	createRunningContainer(t, "foo")
 	createRunningContainer(t, "foo")
 
 
 	// Stop then remove with -s
 	// Stop then remove with -s
@@ -71,7 +71,7 @@ func TestForceRemoveRunningContainer(t *testing.T) {
 	logDone("rm - running container with --force=true")
 	logDone("rm - running container with --force=true")
 }
 }
 
 
-func TestContainerOrphaning(t *testing.T) {
+func TestRmContainerOrphaning(t *testing.T) {
 	dockerfile1 := `FROM busybox:latest
 	dockerfile1 := `FROM busybox:latest
 	ENTRYPOINT ["/bin/true"]`
 	ENTRYPOINT ["/bin/true"]`
 	img := "test-container-orphaning"
 	img := "test-container-orphaning"
@@ -110,7 +110,7 @@ func TestContainerOrphaning(t *testing.T) {
 	logDone("rm - container orphaning")
 	logDone("rm - container orphaning")
 }
 }
 
 
-func TestDeleteTagWithExistingContainers(t *testing.T) {
+func TestRmTagWithExistingContainers(t *testing.T) {
 	container := "test-delete-tag"
 	container := "test-delete-tag"
 	newtag := "busybox:newtag"
 	newtag := "busybox:newtag"
 	bb := "busybox:latest"
 	bb := "busybox:latest"