Files
pawsql/internal/postgres/provisioner_test.go
Shaun Campbell 865f7c26c9
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m28s
feat: add PawSQL docs examples and image CI
2026-09-15 18:49:26 -04:00

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)
}
}
}