All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m28s
20 lines
453 B
Go
20 lines
453 B
Go
package postgres
|
|
|
|
import "testing"
|
|
|
|
func TestPostgresDataMount(t *testing.T) {
|
|
tests := []struct {
|
|
image string
|
|
want string
|
|
}{
|
|
{"postgres:16", "/var/lib/postgresql/data"},
|
|
{"postgres:17", "/var/lib/postgresql/data"},
|
|
{"postgres:18", "/var/lib/postgresql"},
|
|
}
|
|
for _, test := range tests {
|
|
if got := postgresDataMount(test.image); got != test.want {
|
|
t.Errorf("postgresDataMount(%q) = %q, want %q", test.image, got, test.want)
|
|
}
|
|
}
|
|
}
|