mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 23:36:00 +00:00
update runtime_test to handle PrometheusOpts expiry field change
This commit is contained in:
parent
49f017bd42
commit
2fe021f03c
@ -8,6 +8,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/armon/go-metrics/prometheus"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
@ -7103,9 +7104,11 @@ func TestFullConfig(t *testing.T) {
|
|||||||
AllowedPrefixes: []string{"oJotS8XJ"},
|
AllowedPrefixes: []string{"oJotS8XJ"},
|
||||||
BlockedPrefixes: []string{"cazlEhGn"},
|
BlockedPrefixes: []string{"cazlEhGn"},
|
||||||
MetricsPrefix: "ftO6DySn",
|
MetricsPrefix: "ftO6DySn",
|
||||||
PrometheusRetentionTime: 15 * time.Second,
|
|
||||||
StatsdAddr: "drce87cy",
|
StatsdAddr: "drce87cy",
|
||||||
StatsiteAddr: "HpFwKB8R",
|
StatsiteAddr: "HpFwKB8R",
|
||||||
|
PrometheusOpts: prometheus.PrometheusOpts{
|
||||||
|
Expiration: 15 * time.Second,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
TLSCipherSuites: []uint16{tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256},
|
TLSCipherSuites: []uint16{tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256},
|
||||||
TLSMinVersion: "pAOWafkR",
|
TLSMinVersion: "pAOWafkR",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user