add test stubs

This commit is contained in:
Stas Kelvich
2021-03-22 22:26:30 +03:00
parent efe9fdbbe6
commit a522961d0c
3 changed files with 38 additions and 0 deletions

7
tests/compute.rs Normal file
View File

@@ -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() {}

15
tests/pageserver.rs Normal file
View File

@@ -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() {}

16
tests/wal_acceptor.rs Normal file
View File

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