Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kassouf committed Apr 23, 2018
1 parent 02eacf7 commit b63d799
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions vault/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,6 @@ func TestCore_HandleRequest_Headers(t *testing.T) {
Path: "foo/test",
ClientToken: root,
Headers: map[string][]string{
"X-Vault-Kv-Client": []string{"foo"},
"Should-Passthrough": []string{"foo"},
"Should-Passthrough-Case-Insensitive": []string{"baz"},
"Should-Not-Passthrough": []string{"bar"},
Expand All @@ -2328,16 +2327,6 @@ func TestCore_HandleRequest_Headers(t *testing.T) {
// Check the headers
headers := noop.Requests[0].Headers

// Test whitelisted values
if val, ok := headers["X-Vault-Kv-Client"]; ok {
expected := []string{"foo"}
if !reflect.DeepEqual(val, expected) {
t.Fatalf("expected: %v, got: %v", expected, val)
}
} else {
t.Fatalf("expected 'X-Vault-Kv-Client' to be present in the headers map")
}

// Test passthrough values
if val, ok := headers["Should-Passthrough"]; ok {
expected := []string{"foo"}
Expand Down

0 comments on commit b63d799

Please sign in to comment.