Merge pull request #786 from hqhq/hq_fix_event_test

Fix integration test for events
This commit is contained in:
Mrunal Patel 2016-04-26 12:07:53 -07:00
commit 7605fce790
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function startup_events() {
run "$RUNC" events --stats test_busybox run "$RUNC" events --stats test_busybox
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
[[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]] [[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]]
[[ "${lines[0]}" == *"CgroupStats"* ]] [[ "${lines[0]}" == *"data"* ]]
} }
@test "events --interval default " { @test "events --interval default " {
@ -54,7 +54,7 @@ function startup_events() {
run cat events.log run cat events.log
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
[[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]] [[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]]
[[ "${lines[0]}" == *"CgroupStats"* ]] [[ "${lines[0]}" == *"data"* ]]
} }
@test "events --interval 1s " { @test "events --interval 1s " {