371179e292
tests: Trigger raftBeforeLeaderSend
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-17 14:17:16 +01:00
7180267d56
tests: refactor EtcdProcessClusterConfig
with Functional Options Pattern
...
remove `cfg *EtcdProcessClusterConfig` param from `NewEtcdProcessCluster` function
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-11-16 15:05:29 +08:00
9406de0033
tests: refactor EtcdProcessClusterConfig
with Functional Options Pattern
...
replace all initialisations with `DefaultConfig`, `NewConfig` and `EPClusterOption`
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-11-16 15:05:28 +08:00
8ae4420c4c
tests: Add compact failpoints
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-15 15:00:18 +01:00
39ca876f38
Merge pull request #14757 from ahrtr/add_failpoint_20221115
...
etcdserver: add failpoints for backend
2022-11-15 17:14:14 +08:00
cf190fb5b0
test: apply backend failpoints into the linearizablity test
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-15 16:36:56 +08:00
d62e018495
Merge pull request #14755 from serathius/linearizability-traffic
...
tests: Make linearizability traffic extendable
2022-11-15 09:11:40 +08:00
2fc1485f29
tests: Make linearizability traffic extendable
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-14 23:14:10 +01:00
855aa4f7a7
all: Use ReplaceAll instead of Replace with -1 pos
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 00:06:09 +03:00
ca8baeb308
Merge pull request #14685 from serathius/linearizability-revision
...
Revision inconsistency caused by panic during defrag
2022-11-14 12:49:22 +01:00
ff6c93f630
tests: Add revision to etcd linearizability model
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-14 12:20:55 +01:00
5b163aa507
Expect exit code enhancement
...
ExpectProcess and ExpectFunc now take the exit code of the process into
account, not just the matching of the tty output.
This also refactors the many tests that were previously succeeding on
matching an output from a failing cmd execution.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com >
2022-11-14 11:19:41 +01:00
2532ca84d1
test: add failpoints into linearizablity test for commitBeforePreCommitHook and commitAfterPreCommitHook
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-14 11:11:48 +08:00
d5a6d2518d
tests: Optimize checking failed writes
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-13 13:36:21 +01:00
04caec5960
tests: Preserve data dir from failed linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-10 11:05:59 +01:00
219278b298
tests: Add triggering random go failpoints to linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-06 15:56:28 +01:00
837819860b
tests: Add linearizability tests scenario for #14370
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-10-24 13:36:12 +02:00
069e26e284
tests: Validate etcd linearizability
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-10-23 06:41:38 +02:00