Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
| ... | ... |
@@ -9,7 +9,7 @@ import ( |
| 9 | 9 |
"time" |
| 10 | 10 |
) |
| 11 | 11 |
|
| 12 |
-func TestCLIGetEventsUntag(t *testing.T) {
|
|
| 12 |
+func TestEventsUntag(t *testing.T) {
|
|
| 13 | 13 |
out, _, _ := cmd(t, "images", "-q") |
| 14 | 14 |
image := strings.Split(out, "\n")[0] |
| 15 | 15 |
cmd(t, "tag", image, "utest:tag1") |
| ... | ... |
@@ -31,7 +31,7 @@ func TestCLIGetEventsUntag(t *testing.T) {
|
| 31 | 31 |
logDone("events - untags are logged")
|
| 32 | 32 |
} |
| 33 | 33 |
|
| 34 |
-func TestCLIGetEventsPause(t *testing.T) {
|
|
| 34 |
+func TestEventsPause(t *testing.T) {
|
|
| 35 | 35 |
out, _, _ := cmd(t, "images", "-q") |
| 36 | 36 |
image := strings.Split(out, "\n")[0] |
| 37 | 37 |
cmd(t, "run", "-d", "--name", "testeventpause", image, "sleep", "2") |
| ... | ... |
@@ -57,7 +57,7 @@ func TestCLIGetEventsPause(t *testing.T) {
|
| 57 | 57 |
logDone("events - pause/unpause is logged")
|
| 58 | 58 |
} |
| 59 | 59 |
|
| 60 |
-func TestCLILimitEvents(t *testing.T) {
|
|
| 60 |
+func TestEventsLimit(t *testing.T) {
|
|
| 61 | 61 |
for i := 0; i < 30; i++ {
|
| 62 | 62 |
cmd(t, "run", "busybox", "echo", strconv.Itoa(i)) |
| 63 | 63 |
} |
| ... | ... |
@@ -71,7 +71,7 @@ func TestCLILimitEvents(t *testing.T) {
|
| 71 | 71 |
logDone("events - limited to 64 entries")
|
| 72 | 72 |
} |
| 73 | 73 |
|
| 74 |
-func TestCLIGetEventsContainerEvents(t *testing.T) {
|
|
| 74 |
+func TestEventsContainerEvents(t *testing.T) {
|
|
| 75 | 75 |
cmd(t, "run", "--rm", "busybox", "true") |
| 76 | 76 |
eventsCmd := exec.Command(dockerBinary, "events", "--since=0", fmt.Sprintf("--until=%d", time.Now().Unix()))
|
| 77 | 77 |
out, exitCode, err := runCommandWithOutput(eventsCmd) |
| ... | ... |
@@ -103,7 +103,7 @@ func TestCLIGetEventsContainerEvents(t *testing.T) {
|
| 103 | 103 |
logDone("events - container create, start, die, destroy is logged")
|
| 104 | 104 |
} |
| 105 | 105 |
|
| 106 |
-func TestCLIGetEventsImageUntagDelete(t *testing.T) {
|
|
| 106 |
+func TestEventsImageUntagDelete(t *testing.T) {
|
|
| 107 | 107 |
name := "testimageevents" |
| 108 | 108 |
defer deleteImages(name) |
| 109 | 109 |
_, err := buildImage(name, |