Skip to content

Commit

Permalink
e2e: test ETCD_WATCH_VALUE
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Jan 17, 2018
1 parent 5e0118d commit 6ba5682
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/ctl_v3_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func watchTest(cx ctlCtx) {
args: []string{"sample", "--rev", "1", "--", "echo", "watch event received"},
wkv: []kvExec{{key: "sample", val: "value", execOutput: "watch event received"}},
},
{ // watch 1 key with ${ETCD_WATCH_VALUE}
puts: []kv{{"sample", "value"}},
args: []string{"sample", "--rev", "1", "--", "env"},
wkv: []kvExec{{key: "sample", val: "value", execOutput: `ETCD_WATCH_VALUE="value"`}},
},
{ // watch 1 key with "echo watch event received", with env
puts: []kv{{"sample", "value"}},
envKey: "sample",
Expand Down

0 comments on commit 6ba5682

Please sign in to comment.