etcdhttp: add test for expiration time
parent
c28fd92d10
commit
ef0ba361df
|
@ -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
|
// PUT ==> Set
|
||||||
{
|
{
|
||||||
pb.Request{Method: "PUT", Id: 1},
|
pb.Request{Method: "PUT", Id: 1},
|
||||||
|
|
Loading…
Reference in New Issue