-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Output human duration in TTL warnings (#7901) * Add enable_hostname_label option to telementry stanza (#7902) * store secret key and value as an object to fix copy/show secret bug (#7926) * Add accept header check for prometheus mime type (#7958) * Add accept header check for prometheus mime type * Fix small header filter bug. Add test * Fix S3 configurable path handling (#7966) Also remove some incorrect skipping of the S3 test. Fixes #7362 * Ui/fix demoting status menu (#7997) * fix bug where users couldn't click on update primary * don't show status menu items when cluster isSecondary since those links don't work * show the mode of replication in the status menu * do not show server header in status menu when the contents are empty * show Disaster Recovery instead of 'DR' * do not show http metrics in status menu unless user is authenticated * fix typo so icons in status menu show * Transit: error when restoring to a name that looks like a path (#7998) * Add test to verify #7663 * Validate name in transit key restore to not be a path * overwrite bulma bug that crashes safari (#8023)
- Loading branch information
1 parent
6e06873
commit 37660a0
Showing
18 changed files
with
247 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package metricsutil | ||
|
||
import ( | ||
"github.com/hashicorp/vault/sdk/logical" | ||
"testing" | ||
) | ||
|
||
func TestFormatFromRequest(t *testing.T) { | ||
testCases := []struct { | ||
original *logical.Request | ||
expected string | ||
}{ | ||
{ | ||
original: &logical.Request{Headers: map[string][]string{ | ||
"Accept": { | ||
"application/vnd.google.protobuf", | ||
"schema=\"prometheus/telemetry\"", | ||
}, | ||
}}, | ||
expected: "prometheus", | ||
}, | ||
{ | ||
original: &logical.Request{Headers: map[string][]string{ | ||
"Accept": { | ||
"schema=\"prometheus\"", | ||
}, | ||
}}, | ||
expected: "", | ||
}, | ||
{ | ||
original: &logical.Request{Headers: map[string][]string{ | ||
"Accept": { | ||
"application/openmetrics-text", | ||
}, | ||
}}, | ||
expected: "prometheus", | ||
}, | ||
} | ||
|
||
for _, tCase := range testCases { | ||
if metricsType := FormatFromRequest(tCase.original); metricsType != tCase.expected { | ||
t.Fatalf("expected %s but got %s", tCase.expected, metricsType) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,6 @@ | |
|
||
.menu { | ||
padding: $size-11 0; | ||
|
||
small code { | ||
margin-left: $spacing-xs; | ||
} | ||
} | ||
|
||
button.link, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.select select { | ||
text-rendering: auto !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.