File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# Test binary, built with `go test -c`
9
9
* .test
10
+ tools /
10
11
11
12
# Output of the go coverage tool, specifically when used with LiteIDE
12
13
* .out
Original file line number Diff line number Diff line change 1
1
package config
2
2
3
+ // ValidationError describes an error validating the provided config.
3
4
type ValidationError struct {
4
5
message string
5
6
}
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ func TestLoadConfig(t *testing.T) {
105
105
106
106
expectedCfg := Config {
107
107
Proxy : ProxyConfig {
108
- UpstreamTarget : "https ://princesscarolyn.net " ,
108
+ UpstreamTarget : "http ://localhost " ,
109
109
Signer : SignerConfig {
110
110
KeyId : "6f33b219-137c-467e-9a61-f61040a03363" ,
111
111
KeyFilePath : "/etc/form3/private/private.key" ,
@@ -138,7 +138,7 @@ func TestLoadConfig(t *testing.T) {
138
138
139
139
configFile := "config_test.yaml"
140
140
overrides := []string {
141
- "proxy.upstreamTarget=https ://princesscarolyn.net " ,
141
+ "proxy.upstreamTarget=http ://localhost " ,
142
142
"log.level=debug" ,
143
143
}
144
144
_ = os .Setenv ("SERVER_PORT" , "9090" )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package proxy
2
2
3
3
import "fmt"
4
4
5
+ // InvalidRequestError is raised when the contents of the request cause signing to fail.
5
6
type InvalidRequestError struct {
6
7
reason error
7
8
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func TestLoadKey(t *testing.T) {
68
68
}
69
69
70
70
func TestGetSignatureHeaders (t * testing.T ) {
71
- dummyUrl := "https://oompaloompa. localhost:1234"
71
+ dummyUrl := "https://localhost:1234"
72
72
dummyBody := "{\" name\" :\" travis\" }"
73
73
74
74
tests := []struct {
You can’t perform that action at this time.
0 commit comments