Skip to content

Commit

Permalink
Removing unnecessary refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pspieker-stripe committed Feb 16, 2024
1 parent 81393a5 commit 31190ca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/smokescreen/smokescreen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1328,10 +1328,6 @@ func findCanonicalProxyClose(logs []*logrus.Entry) *logrus.Entry {
}

func testConfig(role string) (*Config, error) {
return testConfigFromACLFile(role, "testdata/acl.yaml")
}

func testConfigFromACLFile(role string, filepath string) (*Config, error) {
conf := NewConfig()

if err := conf.SetAllowRanges(allowRanges); err != nil {
Expand All @@ -1341,7 +1337,7 @@ func testConfigFromACLFile(role string, filepath string) (*Config, error) {
conf.ExitTimeout = 10 * time.Second
conf.AdditionalErrorMessageOnDeny = "Proxy denied"
conf.Resolver = &net.Resolver{}
conf.SetupEgressAcl(filepath)
conf.SetupEgressAcl("testdata/acl.yaml")
conf.RoleFromRequest = func(req *http.Request) (string, error) {
return role, nil
}
Expand Down

0 comments on commit 31190ca

Please sign in to comment.