Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys: add host-info endpoint #7330

Merged
merged 20 commits into from
Oct 3, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion http/sys_hostinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ func TestSysHostInfo(t *testing.T) {
t.Fatal("expected memory info")
}

// Query against the standby, should error
// Check we're standby
healthResp, err := cores[1].Client.Sys().Health()
calvn marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
t.Fatal(err)
}
if !healthResp.Standby {
t.Fatal("expected node to be standby")
}

// Query against a standby, should error
secret, err = cores[1].Client.Logical().Read("sys/host-info")
calvn marked this conversation as resolved.
Show resolved Hide resolved
if err == nil || secret != nil {
t.Fatalf("expected error on standby node, HostInfo: %v", secret)
Expand Down