Browse code

Use prefix naming for rm tests

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>

Alexandr Morozov authored on 2014/09/20 02:51:37
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"testing"
8 8
 )
9 9
 
10
-func TestRemoveContainerWithRemovedVolume(t *testing.T) {
10
+func TestRmContainerWithRemovedVolume(t *testing.T) {
11 11
 	cmd := exec.Command(dockerBinary, "run", "--name", "losemyvolumes", "-v", "/tmp/testing:/test", "busybox", "true")
12 12
 	if _, err := runCommand(cmd); err != nil {
13 13
 		t.Fatal(err)
... ...
@@ -27,7 +27,7 @@ func TestRemoveContainerWithRemovedVolume(t *testing.T) {
27 27
 	logDone("rm - removed volume")
28 28
 }
29 29
 
30
-func TestRemoveContainerWithVolume(t *testing.T) {
30
+func TestRmContainerWithVolume(t *testing.T) {
31 31
 	cmd := exec.Command(dockerBinary, "run", "--name", "foo", "-v", "/srv", "busybox", "true")
32 32
 	if _, err := runCommand(cmd); err != nil {
33 33
 		t.Fatal(err)
... ...
@@ -43,7 +43,7 @@ func TestRemoveContainerWithVolume(t *testing.T) {
43 43
 	logDone("rm - volume")
44 44
 }
45 45
 
46
-func TestRemoveRunningContainer(t *testing.T) {
46
+func TestRmRunningContainer(t *testing.T) {
47 47
 	createRunningContainer(t, "foo")
48 48
 
49 49
 	// Test cannot remove running container
... ...
@@ -57,7 +57,7 @@ func TestRemoveRunningContainer(t *testing.T) {
57 57
 	logDone("rm - running container")
58 58
 }
59 59
 
60
-func TestForceRemoveRunningContainer(t *testing.T) {
60
+func TestRmForceRemoveRunningContainer(t *testing.T) {
61 61
 	createRunningContainer(t, "foo")
62 62
 
63 63
 	// Stop then remove with -s
... ...
@@ -71,7 +71,7 @@ func TestForceRemoveRunningContainer(t *testing.T) {
71 71
 	logDone("rm - running container with --force=true")
72 72
 }
73 73
 
74
-func TestContainerOrphaning(t *testing.T) {
74
+func TestRmContainerOrphaning(t *testing.T) {
75 75
 	dockerfile1 := `FROM busybox:latest
76 76
 	ENTRYPOINT ["/bin/true"]`
77 77
 	img := "test-container-orphaning"
... ...
@@ -110,7 +110,7 @@ func TestContainerOrphaning(t *testing.T) {
110 110
 	logDone("rm - container orphaning")
111 111
 }
112 112
 
113
-func TestDeleteTagWithExistingContainers(t *testing.T) {
113
+func TestRmTagWithExistingContainers(t *testing.T) {
114 114
 	container := "test-delete-tag"
115 115
 	newtag := "busybox:newtag"
116 116
 	bb := "busybox:latest"