mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
updated tests
This commit is contained in:
parent
9099ba0edf
commit
8f5cb5610c
2 changed files with 42056 additions and 233 deletions
42277
coverage.txt
42277
coverage.txt
File diff suppressed because it is too large
Load diff
|
|
@ -29,7 +29,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
},
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Container",
|
||||
Type: "container",
|
||||
Action: "start",
|
||||
Actor: EventActor{
|
||||
ID: "abc123",
|
||||
|
|
@ -51,7 +51,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
},
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Pod",
|
||||
Type: "pod",
|
||||
Action: "stop",
|
||||
Actor: EventActor{
|
||||
ID: "pod456",
|
||||
|
|
@ -73,7 +73,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
},
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Image",
|
||||
Type: "image",
|
||||
Action: "pull",
|
||||
Actor: EventActor{
|
||||
ID: "img789",
|
||||
|
|
@ -92,7 +92,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
Time: time.Unix(1234567893, 0),
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Volume",
|
||||
Type: "volume",
|
||||
Action: "create",
|
||||
Actor: EventActor{
|
||||
ID: "vol999",
|
||||
|
|
@ -111,7 +111,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
Time: time.Unix(1234567894, 0),
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Network",
|
||||
Type: "network",
|
||||
Action: "remove",
|
||||
Actor: EventActor{
|
||||
ID: "net111",
|
||||
|
|
@ -136,7 +136,7 @@ func TestConvertLibpodEvent(t *testing.T) {
|
|||
},
|
||||
},
|
||||
expected: Event{
|
||||
Type: "Container",
|
||||
Type: "container",
|
||||
Action: "died",
|
||||
Actor: EventActor{
|
||||
ID: "ctr222",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue