Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarcic committed Oct 22, 2017
1 parent ec51f28 commit da27f4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.idea
/*.iml
/*.out
/certs
/docker-flow-proxy
*.bak
/tmp
Expand Down
1 change: 0 additions & 1 deletion proxy/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
)

func getFrontTemplate(s Service) string {
// TODO: Change domain_{{$.AclName}} to a unique value
tmplString := `
{{- range $sd := .ServiceDest}}
{{- if eq .ReqMode "http"}}
Expand Down
14 changes: 7 additions & 7 deletions proxy/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ func (s *TypesTestSuite) Test_GetServiceFromProvider_MovesHttpsOnlyToIndexedEntr
ServiceName: "serviceName",
}
serviceMap := map[string]string{
"httpsOnly": strconv.FormatBool(expected.ServiceDest[0].HttpsOnly),
"serviceName": expected.ServiceName,
"port.1": expected.ServiceDest[0].Port,
"servicePath.1": strings.Join(expected.ServiceDest[0].ServicePath, ","),
"httpsOnly": strconv.FormatBool(expected.ServiceDest[0].HttpsOnly),
"serviceName": expected.ServiceName,
"port.1": expected.ServiceDest[0].Port,
"servicePath.1": strings.Join(expected.ServiceDest[0].ServicePath, ","),
}
provider := mapParameterProvider{&serviceMap}
actual := GetServiceFromProvider(&provider)
Expand All @@ -326,9 +326,9 @@ func (s *TypesTestSuite) Test_GetServiceFromProvider_UsesHttpsOnlyFromEnvVar() {
ServiceName: "serviceName",
}
serviceMap := map[string]string{
"serviceName": expected.ServiceName,
"port.1": expected.ServiceDest[0].Port,
"servicePath.1": strings.Join(expected.ServiceDest[0].ServicePath, ","),
"serviceName": expected.ServiceName,
"port.1": expected.ServiceDest[0].Port,
"servicePath.1": strings.Join(expected.ServiceDest[0].ServicePath, ","),
}
provider := mapParameterProvider{&serviceMap}

Expand Down

0 comments on commit da27f4b

Please sign in to comment.