Skip to content

Commit

Permalink
fixing path escaping in JSON for TestConfigFileTLSCanBeRelativeToConf…
Browse files Browse the repository at this point in the history
…igOrAbsolute

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
  • Loading branch information
David Lawrence committed Sep 22, 2016
1 parent 393783c commit 8e4f189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/notary/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http/httptest"
"os"
"path/filepath"
"strconv"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -343,10 +344,10 @@ func TestConfigFileTLSCanBeRelativeToConfigOrAbsolute(t *testing.T) {
"remote_server": {
"url": "%s",
"root_ca": "root-ca.crt",
"tls_client_cert": "%s",
"tls_client_cert": %s,
"tls_client_key": "notary-server.key"
}
}`, s.URL, filepath.Join(tempDir, "notary-server.crt"))
}`, s.URL, strconv.Quote(filepath.Join(tempDir, "notary-server.crt")))
configFile.Close()

// copy the certs to be relative to the config directory
Expand Down

0 comments on commit 8e4f189

Please sign in to comment.