Use postgres default configuration
This commit is contained in:
parent
63552282d7
commit
4471e2bdbb
|
@ -14,5 +14,3 @@ postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
|
||||||
POSTGRES_USER: ubuntu
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ func TestPostgresqlGeneratesMetrics(t *testing.T) {
|
||||||
p := &Postgresql{
|
p := &Postgresql{
|
||||||
Servers: []*Server{
|
Servers: []*Server{
|
||||||
{
|
{
|
||||||
Address: "host=localhost user=ubuntu sslmode=disable",
|
Address: "host=localhost user=postgres sslmode=disable",
|
||||||
Databases: []string{"postgres"},
|
Databases: []string{"postgres"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -57,7 +57,7 @@ func TestPostgresqlTagsMetricsWithDatabaseName(t *testing.T) {
|
||||||
p := &Postgresql{
|
p := &Postgresql{
|
||||||
Servers: []*Server{
|
Servers: []*Server{
|
||||||
{
|
{
|
||||||
Address: "host=localhost user=ubuntu sslmode=disable",
|
Address: "host=localhost user=postgres sslmode=disable",
|
||||||
Databases: []string{"postgres"},
|
Databases: []string{"postgres"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -78,7 +78,7 @@ func TestPostgresqlDefaultsToAllDatabases(t *testing.T) {
|
||||||
p := &Postgresql{
|
p := &Postgresql{
|
||||||
Servers: []*Server{
|
Servers: []*Server{
|
||||||
{
|
{
|
||||||
Address: "host=localhost user=ubuntu sslmode=disable",
|
Address: "host=localhost user=postgres sslmode=disable",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue