test: Fix naming of integration test config structs (#7020)
Significantly differentiate configuration struct naming in the integration package.
This commit is contained in:
parent
e7cb74b5f8
commit
33109ce384
|
|
@ -20,7 +20,7 @@ import (
|
|||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
type nonceBalancerTestConfig struct {
|
||||
NotWFE struct {
|
||||
TLS cmd.TLSConfig
|
||||
GetNonceService *cmd.GRPCClientConfig
|
||||
|
|
@ -40,7 +40,7 @@ func TestNonceBalancer_NoBackendMatchingPrefix(t *testing.T) {
|
|||
// masquerades as a wfe for the purpose of redeeming nonces.
|
||||
|
||||
// Load the test config.
|
||||
var c Config
|
||||
var c nonceBalancerTestConfig
|
||||
err := cmd.ReadConfigFile("test/integration/testdata/nonce-client.json", &c)
|
||||
test.AssertNotError(t, err, "Could not read config file")
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/letsencrypt/boulder/test"
|
||||
)
|
||||
|
||||
type conf struct {
|
||||
type srvResolverTestConfig struct {
|
||||
WebFooEnd struct {
|
||||
TLS cmd.TLSConfig
|
||||
// CaseOne config will have 2 SRV records. The first will have 0
|
||||
|
|
@ -39,7 +39,7 @@ type conf struct {
|
|||
func TestSRVResolver_CaseOne(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var c conf
|
||||
var c srvResolverTestConfig
|
||||
err := cmd.ReadConfigFile("test/integration/testdata/srv-resolver-config.json", &c)
|
||||
test.AssertNotError(t, err, "Could not read config file")
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ func TestSRVResolver_CaseOne(t *testing.T) {
|
|||
func TestSRVResolver_CaseTwo(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var c conf
|
||||
var c srvResolverTestConfig
|
||||
err := cmd.ReadConfigFile("test/integration/testdata/srv-resolver-config.json", &c)
|
||||
test.AssertNotError(t, err, "Could not read config file")
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ func TestSRVResolver_CaseTwo(t *testing.T) {
|
|||
func TestSRVResolver_CaseThree(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var c conf
|
||||
var c srvResolverTestConfig
|
||||
err := cmd.ReadConfigFile("test/integration/testdata/srv-resolver-config.json", &c)
|
||||
test.AssertNotError(t, err, "Could not read config file")
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ func TestSRVResolver_CaseThree(t *testing.T) {
|
|||
func TestSRVResolver_CaseFour(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var c conf
|
||||
var c srvResolverTestConfig
|
||||
err := cmd.ReadConfigFile("test/integration/testdata/srv-resolver-config.json", &c)
|
||||
test.AssertNotError(t, err, "Could not read config file")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue