Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(client): add vitess flavor in relationMode test suite #16051

Merged
merged 15 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,21 @@ services:
restart: always
ports:
- 33807:33807
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h127.0.0.1', '-P33577']
interval: 5s
timeout: 2s
retries: 5
start_period: 25s
environment:
PORT: '33804' # unused in testing, but required by vttestserver
KEYSPACES: 'keyspace' # unused in testing, but required by vttestserver
KEYSPACES: 'unsharded' # unused in testing, but required by vttestserver
NUM_SHARDS: '1' # unused in testing, but required by vttestserver

MYSQL_BIND_HOST: '0.0.0.0'
FOREIGN_KEY_MODE: 'disallow'
VT_DIALECT: 'mysql80'
PLANNER_VERSION: 'gen4fallback'
TOPOLOGY_FLAGS: '-shutdown_grace_period 2'
jkomyno marked this conversation as resolved.
Show resolved Hide resolved

# vitess-test-5_7:
# image: vitess/vttestserver:mysql57@sha256:2b132a22d08b3b227d9391f8f58ed7ab5c081ca07bf0f87a0c166729124d360a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export function computeMatrix({ relationMode, providersDenyList }: ComputeMatrix
const referentialActionsDenylistByProviderFlavor = {
foreignKeys: {
[Providers.SQLSERVER]: ['Restrict'],
[ProviderFlavors.VITESS_8]: referentialActionsBase, // no action is executed for Vitess & relationMode="foreignKeys"

// skip all actions for Vitess & relationMode="foreignKeys" as Foreign Keys are not supported by that provider
[ProviderFlavors.VITESS_8]: referentialActionsBase,
},
prisma: {
[Providers.SQLSERVER]: ['Restrict'],
Expand Down