From ef0ba361df2cfbfb04b1eb70d038888c5e97b4c5 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Wed, 24 Sep 2014 15:46:40 -0700 Subject: [PATCH] etcdhttp: add test for expiration time --- etcdserver/server_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etcdserver/server_test.go b/etcdserver/server_test.go index 01f05f694..8e2804c7e 100644 --- a/etcdserver/server_test.go +++ b/etcdserver/server_test.go @@ -144,6 +144,17 @@ func TestApply(t *testing.T) { }, }, }, + // POST ==> Create, with expiration + { + pb.Request{Method: "POST", Id: 1, Expiration: 1337}, + Response{Event: &store.Event{}}, + []action{ + action{ + name: "Create", + params: []interface{}{"", false, "", true, time.Unix(0, 1337)}, + }, + }, + }, // PUT ==> Set { pb.Request{Method: "PUT", Id: 1},