@@ -26,12 +26,12 @@ func TestGenerateFromEvents(t *testing.T) {
26
26
var counter atomic.Int32
27
27
28
28
eventsResponse := `
29
- {"status ":"start ","id ":"8dfafdbc3a40 ","from":"base:latest","time ":1374067924}
30
- {"status ":"stop ","id ":"8dfafdbc3a40 ","from":"base:latest","time ":1374067966}
31
- {"status ":"start ","id ":"8dfafdbc3a40 ","from":"base:latest","time ":1374067970}
32
- {"status ":"destroy ","id ":"8dfafdbc3a40 ","from":"base:latest","time ":1374067990}`
29
+ {"Type ":"container ","Action ":"start ","Actor": {"ID":"8dfafdbc3a40"},"Time ":1374067924}
30
+ {"Type ":"container ","Action ":"stop ","Actor": {"ID":"8dfafdbc3a40"},"Time ":1374067966}
31
+ {"Type ":"container ","Action ":"start ","Actor": {"ID":"8dfafdbc3a40"},"Time ":1374067970}
32
+ {"Type ":"container ","Action ":"destroy ","Actor": {"ID":"8dfafdbc3a40"},"Time ":1374067990}`
33
33
infoResponse := `{"Containers":1,"Images":1,"Debug":0,"NFd":11,"NGoroutines":21,"MemoryLimit":1,"SwapLimit":0}`
34
- versionResponse := `{"Version":"1.8.0 ","Os":"Linux","KernelVersion":"3.18.5-tinycore64 ","GoVersion":"go1.4.1 ","GitCommit":"a8a31ef ","Arch":"amd64","ApiVersion":"1.19 "}`
34
+ versionResponse := `{"Version":"19.03.12 ","Os":"Linux","KernelVersion":"4.19.76-linuxkit ","GoVersion":"go1.13.14 ","GitCommit":"48a66213fe ","Arch":"amd64","ApiVersion":"1.40 "}`
35
35
36
36
server , _ := dockertest .NewServer ("127.0.0.1:0" , nil , nil )
37
37
server .CustomHandler ("/events" , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
0 commit comments