mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
envoy: add full version (#2287)
* envoy: add full version * remove unused import * get envoy for lint
This commit is contained in:
parent
5dd68f5ff0
commit
31fa214983
15 changed files with 103 additions and 48 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/envoy/files"
|
||||
"github.com/pomerium/pomerium/internal/version"
|
||||
"github.com/pomerium/pomerium/pkg/metrics"
|
||||
|
||||
|
@ -63,6 +64,7 @@ func Test_SetDBConfigInfo(t *testing.T) {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
func Test_SetBuildInfo(t *testing.T) {
|
||||
registry = newMetricRegistry()
|
||||
|
||||
|
@ -72,6 +74,7 @@ func Test_SetBuildInfo(t *testing.T) {
|
|||
wantLabels := []metricdata.LabelValue{
|
||||
{Value: "test_service", Present: true},
|
||||
{Value: version.FullVersion(), Present: true},
|
||||
{Value: files.FullVersion(), Present: true},
|
||||
{Value: version.GitCommit, Present: true},
|
||||
{Value: runtime.Version(), Present: true},
|
||||
{Value: "test_host", Present: true},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue