From 4471e2bdbbe42c6baf887c27300d2d26206648bc Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Mon, 6 Jul 2015 03:46:53 -0300 Subject: [PATCH] Use postgres default configuration --- docker-compose.yml | 2 -- plugins/postgresql/postgresql_test.go | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5945f06ab..f2c1b2b54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,5 +14,3 @@ postgres: image: postgres ports: - "5432:5432" - environment: - POSTGRES_USER: ubuntu diff --git a/plugins/postgresql/postgresql_test.go b/plugins/postgresql/postgresql_test.go index ab17601b1..775087700 100644 --- a/plugins/postgresql/postgresql_test.go +++ b/plugins/postgresql/postgresql_test.go @@ -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", }, }, }