Skip to content

Commit

Permalink
e2e: test {"health": "false"} when kv space is exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Jul 17, 2017
1 parent 3e1fa03 commit e501664
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/ctl_v3_alarm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func alarmTest(cx ctlCtx) {
cx.t.Fatal(err)
}

// '/health' handler should return 'false'
if err := cURLGet(cx.epc, cURLReq{endpoint: "/health", expected: `{"health": "false"}`}); err != nil {
cx.t.Fatalf("failed get with curl (%v)", err)
}

// check that Put is rejected when alarm is on
if err := ctlV3Put(cx, "3rd_test", smallbuf, ""); err != nil {
if !strings.Contains(err.Error(), "etcdserver: mvcc: database space exceeded") {
Expand Down

0 comments on commit e501664

Please sign in to comment.