envoy: add full version (#2287)

* envoy: add full version

* remove unused import

* get envoy for lint
This commit is contained in:
Caleb Doxsey 2021-06-14 13:58:12 -06:00 committed by GitHub
parent 5dd68f5ff0
commit 31fa214983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 103 additions and 48 deletions

View file

@ -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},