Skip to content

Commit

Permalink
fix sslmode=disable
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Jan 22, 2020
1 parent 3169768 commit b638783
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions web/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestConfig_Read(t *testing.T) {
"../test/config2.toml",
&Config{
Server: Server{Port: 4321},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd"},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd"},
Log: Log{Level: "warn", Path: "/tmp/ghz.log"}}},
{"config3.toml",
"../test/config3.toml",
Expand All @@ -34,13 +34,13 @@ func TestConfig_Read(t *testing.T) {
"../test/config2.json",
&Config{
Server: Server{Port: 4321},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd"},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd"},
Log: Log{Level: "warn", Path: "/tmp/ghz.log"}}},
{"config2.yml",
"../test/config2.yml",
&Config{
Server: Server{Port: 4321},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd"},
Database: Database{Type: "postgres", Connection: "host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd"},
Log: Log{Level: "warn", Path: "/tmp/ghz.log"}}},
}

Expand Down
2 changes: 1 addition & 1 deletion web/test/config2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"database": {
"type": "postgres",
"connection": "host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd"
"connection": "host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd"
},
"log": {
"level": "warn",
Expand Down
2 changes: 1 addition & 1 deletion web/test/config2.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[database]
type = "postgres"
connection = "host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd"
connection = "host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd"

[server]
port = 4321
Expand Down
2 changes: 1 addition & 1 deletion web/test/config2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server:
port: 4321
database:
type: postgres
connection: host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpwd
connection: host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpwd
log:
level: warn
path: "/tmp/ghz.log"

0 comments on commit b638783

Please sign in to comment.