test: Fix naming of integration test config structs (#7020)

Significantly differentiate configuration struct naming in the
integration package.
This commit is contained in:
Samantha 2023-08-01 19:24:42 -04:00 committed by GitHub
parent e7cb74b5f8
commit 33109ce384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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")

View 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")