Merge pull request #1233 from hashicorp/b-maint-test
Adds missing token to maint unit test.
This commit is contained in:
commit
51141558fd
|
@ -45,12 +45,12 @@ func TestMaintCommandRun_NoArgs(t *testing.T) {
|
||||||
if err := a1.agent.AddService(service, nil, false, ""); err != nil {
|
if err := a1.agent.AddService(service, nil, false, ""); err != nil {
|
||||||
t.Fatalf("err: %v", err)
|
t.Fatalf("err: %v", err)
|
||||||
}
|
}
|
||||||
if err := a1.agent.EnableServiceMaintenance("test", "broken 1"); err != nil {
|
if err := a1.agent.EnableServiceMaintenance("test", "broken 1", ""); err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable node maintenance
|
// Enable node maintenance
|
||||||
a1.agent.EnableNodeMaintenance("broken 2")
|
a1.agent.EnableNodeMaintenance("broken 2", "")
|
||||||
|
|
||||||
// Run consul maint with no args (list mode)
|
// Run consul maint with no args (list mode)
|
||||||
ui := new(cli.MockUi)
|
ui := new(cli.MockUi)
|
||||||
|
|
Loading…
Reference in New Issue