Files
dolt/integration-tests/go-sql-server-driver
Aaron Son 8021bc5f02 sqle: cluster: Set the engine to read-only when a replica is in standby mode. Set it back to read-write when it becomes primary.
This prevents standby replicas from running some DDL which they were previously
erroneously allowed to run, including CREATE USER, GRANT, CREATE DATABASE and
DROP DATABASE.
2023-09-01 10:47:23 -07:00
..

go-sql-server-driver

This is a driver and a test suite for tests interacting with dolt sql-server. These tests describe a setup for the sql-server(s) which should be running, the interactions which should be run against the servers, and the assertions which should pass given those interactions.

This is meant to be more declarative and more robust than using bats for these integration tests.

Something belongs in this package if it primarily tests interactions with the exposed MySQL port on the sql-server.

Something belongs in bats if it primarily tests interactions with the dolt binary itself. One example for the dolt sql-server command itself would be testing config validation which results in exit codes or help text displayed.