Use postgres default configuration

This commit is contained in:
Marcos Lilljedahl 2015-07-06 03:46:53 -03:00
parent 63552282d7
commit 4471e2bdbb
2 changed files with 3 additions and 5 deletions

View File

@ -14,5 +14,3 @@ postgres:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: ubuntu

View File

@ -12,7 +12,7 @@ func TestPostgresqlGeneratesMetrics(t *testing.T) {
p := &Postgresql{
Servers: []*Server{
{
Address: "host=localhost user=ubuntu sslmode=disable",
Address: "host=localhost user=postgres sslmode=disable",
Databases: []string{"postgres"},
},
},
@ -57,7 +57,7 @@ func TestPostgresqlTagsMetricsWithDatabaseName(t *testing.T) {
p := &Postgresql{
Servers: []*Server{
{
Address: "host=localhost user=ubuntu sslmode=disable",
Address: "host=localhost user=postgres sslmode=disable",
Databases: []string{"postgres"},
},
},
@ -78,7 +78,7 @@ func TestPostgresqlDefaultsToAllDatabases(t *testing.T) {
p := &Postgresql{
Servers: []*Server{
{
Address: "host=localhost user=ubuntu sslmode=disable",
Address: "host=localhost user=postgres sslmode=disable",
},
},
}