From b638783064002f15cd6da1ef40eb13091f1870e3 Mon Sep 17 00:00:00 2001 From: Bojan Date: Tue, 21 Jan 2020 22:14:10 -0400 Subject: [PATCH] fix sslmode=disable --- web/config/config_test.go | 6 +++--- web/test/config2.json | 2 +- web/test/config2.toml | 2 +- web/test/config2.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/config/config_test.go b/web/config/config_test.go index 091f4b1a..d1c3daa2 100644 --- a/web/config/config_test.go +++ b/web/config/config_test.go @@ -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", @@ -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"}}}, } diff --git a/web/test/config2.json b/web/test/config2.json index cc9ba671..209430b6 100644 --- a/web/test/config2.json +++ b/web/test/config2.json @@ -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", diff --git a/web/test/config2.toml b/web/test/config2.toml index 5a8706a3..d99c62ca 100644 --- a/web/test/config2.toml +++ b/web/test/config2.toml @@ -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 diff --git a/web/test/config2.yml b/web/test/config2.yml index 0f8a854f..c0fa7cfa 100644 --- a/web/test/config2.yml +++ b/web/test/config2.yml @@ -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"