graphql-engine/server/tests-py/docker/postgres-init.sh
Samir Talwar 4175b53395 server/api-tests: Add a Docker Compose file for the API tests.
We were previously using the Docker Compose file in the root directory
for manual testing _and_ the server API tests.

This splits them so we can e.g. add Yugabyte for easy manual testing.

In the future, this will also allow us to use ephemeral ports for API
test databases, while keeping the fixed ports for manual testing.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7524
GitOrigin-RevId: 7244e296b0ed0ace9782b6f44f321933a9d9a49d
2023-01-16 16:44:10 +00:00

12 lines
198 B
Bash
Executable File

#!/usr/bin/env bash
# required for test-server.sh
set -e
set -u
set -o pipefail
psql -c 'CREATE DATABASE gql_test2;'
psql -c 'CREATE DATABASE pg_source_1;'
psql -c 'CREATE DATABASE pg_source_2;'