From a522961d0c9f30fa59429ace3becd03ad686b7c8 Mon Sep 17 00:00:00 2001 From: Stas Kelvich Date: Mon, 22 Mar 2021 22:26:30 +0300 Subject: [PATCH] add test stubs --- tests/compute.rs | 7 +++++++ tests/pageserver.rs | 15 +++++++++++++++ tests/wal_acceptor.rs | 16 ++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 tests/compute.rs create mode 100644 tests/pageserver.rs create mode 100644 tests/wal_acceptor.rs diff --git a/tests/compute.rs b/tests/compute.rs new file mode 100644 index 0000000000..955b7ffa5e --- /dev/null +++ b/tests/compute.rs @@ -0,0 +1,7 @@ +// test node resettlement to an empty datadir +#[test] +fn test_resettlement() {} + +// test seq scan of everythin after restart +#[test] +fn test_cold_seqscan() {} diff --git a/tests/pageserver.rs b/tests/pageserver.rs new file mode 100644 index 0000000000..308a6cd530 --- /dev/null +++ b/tests/pageserver.rs @@ -0,0 +1,15 @@ +// XXX: force all redo at the end +// -- restart + seqscan won'r read deleted stuff +// -- pageserver api endpoint to check all rels + +// Handcrafted cases with wal records that are (were) problematic for redo. +#[test] +fn test_redo_cases() {} + +// Runs pg_regress on a compute node +#[test] +fn test_regress() {} + +// Runs pg_regress on a compute node +#[test] +fn test_pageserver_recovery() {} diff --git a/tests/wal_acceptor.rs b/tests/wal_acceptor.rs new file mode 100644 index 0000000000..e829b89115 --- /dev/null +++ b/tests/wal_acceptor.rs @@ -0,0 +1,16 @@ +// Restart acceptors one by one while compute is under the load. +// Majority is always alive +#[test] +fn test_acceptors_restarts() { + + // check wal files equality +} + +// Stop majority of acceptors while compute is under the load. Boot +// them again and check that nothing was losed. Repeat. +// N_CRASHES env var +#[test] +fn test_acceptors_unavalability() { + + // check wal files equality +}