tests: Add txn test framework (#5588)
We need a transactional integration testing framework to do some white-box transactional testing. Using this framework, we can easily build a cluster test environment, specify the number of CN, DN, LOG services we need and control the start and stop of these services, and even simulate some network partitioning and error injection Approved by: @yingfeng, @reusee, @cnutshell, @fengttt
Showing
- CODEOWNERS 1 addition, 0 deletionsCODEOWNERS
- pkg/dnservice/factory.go 3 additions, 2 deletionspkg/dnservice/factory.go
- pkg/tests/service/cnservice.go 9 additions, 4 deletionspkg/tests/service/cnservice.go
- pkg/tests/service/dnservice.go 4 additions, 4 deletionspkg/tests/service/dnservice.go
- pkg/tests/service/options.go 9 additions, 3 deletionspkg/tests/service/options.go
- pkg/tests/service/options_test.go 2 additions, 2 deletionspkg/tests/service/options_test.go
- pkg/tests/service/service.go 50 additions, 5 deletionspkg/tests/service/service.go
- pkg/tests/txn/cluster.go 100 additions, 0 deletionspkg/tests/txn/cluster.go
- pkg/tests/txn/cluster_basic_test.go 120 additions, 0 deletionspkg/tests/txn/cluster_basic_test.go
- pkg/tests/txn/doc.go 19 additions, 0 deletionspkg/tests/txn/doc.go
- pkg/tests/txn/kv_client.go 208 additions, 0 deletionspkg/tests/txn/kv_client.go
- pkg/tests/txn/sql_client.go 181 additions, 0 deletionspkg/tests/txn/sql_client.go
- pkg/tests/txn/types.go 50 additions, 0 deletionspkg/tests/txn/types.go
- pkg/txn/storage/mem/kv_txn_storage.go 11 additions, 3 deletionspkg/txn/storage/mem/kv_txn_storage.go
pkg/tests/txn/cluster.go
0 → 100644
pkg/tests/txn/cluster_basic_test.go
0 → 100644
pkg/tests/txn/doc.go
0 → 100644
pkg/tests/txn/kv_client.go
0 → 100644
pkg/tests/txn/sql_client.go
0 → 100644
pkg/tests/txn/types.go
0 → 100644
Please register or sign in to comment