3f3149b15f
tests: fix failed integration test cases after enabling --strict-reconfig-check
by default
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-09-03 15:56:51 +08:00
3beb25489d
tests: enable --strict-reconfig-check
by default and expose it to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-31 22:21:23 +08:00
e1c5d2a9ac
fix test code compiling error due to not enough arguments in call to node0.Restart
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-30 13:15:04 +08:00
de41f83343
Merge pull request #14383 from serathius/context-e2e
...
tests: Add context to e2e cluster start
2022-08-29 21:12:12 +02:00
c52108942b
Merge branch 'main' into main
2022-08-29 12:07:27 -04:00
fdf22b241a
add the missing parameter 'name' into SpawnCmdWithLogger for cov test
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-29 13:37:23 +08:00
9c8326bb50
Merge pull request #14358 from vivekpatani/main
...
server/auth: refresh cache on each NewAuthStore
2022-08-27 11:13:59 +09:00
dc4b810195
Merge pull request #14388 from niconorsk/fix/notify-systemd-when-cluster-ready-times-out
...
etcdmain: Honour ExperimentalWaitClusterReadyTimeout in startEtcd
2022-08-26 18:34:52 +08:00
e15bdd9df1
etcdmain: Honour ExperimentalWaitClusterReadyTimeout in startEtcd
...
When we can't reach quorum, we were waiting forever and never sending
the systemd notify message. As a result, systemd would eventually time out
and restart the etcd process which likely would make the unhealthy cluster
in an even worse state
Improves #13785
Signed-off-by: Nicolai Moore <niconorsk@gmail.com >
2022-08-26 18:06:50 +10:00
f00578c3cd
Merge pull request #14389 from ahrtr/cleanup_e2e_fields
...
Cleanup some e2e test configurations
2022-08-26 15:05:53 +08:00
70de5c8937
tests: Add context to e2e cluster start
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 08:08:17 +02:00
17b83ea810
Cleanup some e2e test configurations
...
Notes:
1. compactPhysical in ctlCtx and withQuota aren't used at all, they are dead code.
2. quotaBackendBytes in ctlCtx isn't used either. Instead, users (test cases) set the QuotaBackendBytes directly.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-26 13:53:33 +08:00
46fe4b8e1c
tests: Rename common client lease methods to match
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:47 +02:00
b7272df69f
tests: Remove dummy client implementations
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:47 +02:00
72bec6fbc2
tests: Add context to common client interface
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:45 +02:00
e40828540c
Merge pull request #14354 from biosvs/add-client-auto-sync-to-proxy
...
Added client-auto-sync-interval argument to the grpc-proxy
2022-08-26 05:36:01 +08:00
be58a2539c
Added client-auto-sync-interval argument to the grpc-proxy
...
Signed-off-by: Vitalii Levitskii <vitalii@uber.com >
2022-08-25 15:33:38 +03:00
f36a8782f0
Merge pull request #14345 from nic-chen/tests/watch
...
tests: Migrate watch test to common framework
2022-08-25 13:35:34 +02:00
7086a06490
Merge pull request #14377 from tjungblu/flake_14333
...
Add ErrTimeoutDueToLeaderFail as expected error
2022-08-25 10:04:53 +02:00
82bf79d4ce
Merge pull request #14376 from biosvs/fix-expect-package
...
Fixed infinite loop in ExpectProcess.ExpectFunc
2022-08-25 05:29:30 +08:00
71c5360f98
Fixed infinite loop in ExpectProcess.ExpectFunc
...
Signed-off-by: Vitalii Levitskii <vitalii@uber.com >
2022-08-24 16:46:24 +03:00
e1e92e9c0d
Add ErrTimeoutDueToLeaderFail as expected error
...
This fixes ci flakes where timeouts are expected to happen in network
partitions.
issue: #14333
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com >
2022-08-24 13:56:45 +02:00
ae608da7e6
server,test: refresh cache on each NewAuthStore
...
- permissions were incorrectly loaded on restarts.
- https://github.com/etcd-io/etcd/issues/14355
Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com >
2022-08-23 20:11:47 -07:00
f6ed36372b
tests: Migrate watch test to common framework
...
Signed-off-by: nic-chen <chenjunxu6@gmail.com >
2022-08-22 21:55:57 +08:00
192d635da9
Merge pull request #14292 from tjungblu/debug_e2e
...
Add test name to e2e cluster members
2022-08-20 19:30:44 -04:00
d8ee37641d
Cleanup all etcd-agent and etcd processes when the test finishes
...
There are two cases, when interrupted by users, then forcibly kill
all processes. Otherwise, gracefully terminate all processes.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-18 17:15:39 +08:00
2f51d3d9b7
improve the performance of starting functional test
...
The proxy must be waiting for the etcd to be running, but the current
implementation hard codes the wating time as 5 seconds. The improvement
is to dynamically check whether the etcd is running, and start the
proxy when etcd port is reachable.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-18 04:18:11 +08:00
76a5902efa
server/etcdmain: add configurable cipher list to gRPC proxy listener
...
Signed-off-by: Allen Ray <alray@redhat.com >
2022-08-17 10:56:27 -04:00
ea2f299ba0
embed: add integration test for distributed tracing
...
To verify distributed tracing feature is correctly setup, this PR adds
an integration test for this feature.
In the process of writing the test, I discovered a goroutine leak due to
the TraceProvider not being closed. This PR fixs this issue as well.
Signed-off-by: Yingrong Zhao <yingrong.zhao@gmail.com >
2022-08-15 11:19:10 -04:00
bba4eb4d81
Improve functional test code
...
Get duplicated code wraped in common functions, and simplify
error handling.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-08-15 16:59:39 +08:00
0b9f43410a
tests: e2e and integration share TickDuration constant
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-14 18:49:46 +08:00
a5409c62e6
tests: add WaitLeader function to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-11 12:46:40 +08:00
7fa88fb8f7
tests: fix status responses size and nil
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-03 03:10:45 +08:00
51933a7c8b
Add test name to e2e cluster members
...
This should aid in debugging test flakes, especially in tests where the process is restarted very often and thus changes its pid.
Now it's a lot easier to grep for different members, also when different tests fail at the same time.
The test TestDowngradeUpgradeClusterOf3 as mentioned in #13167 is a good example for that.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com >
2022-08-01 15:57:16 +02:00
68c0cf834a
Merge pull request #14288 from VladSaioc/bugfix-goleak-watchtest
...
Fixed goroutine leak in tests/integration/clientv3/watch_test.go
2022-08-01 06:55:57 +08:00
9e9e500d57
Merge pull request #14287 from VladSaioc/bugfix-queue-test
...
Fixed goroutine leak
2022-08-01 06:52:40 +08:00
2c89834608
Fixed goroutine leak in tests/integration/v3_watch_restore_test.go
...
Signed-off-by: VladSaioc <vladsaioc10@gmail.com >
2022-07-31 23:28:26 +02:00
cbfddfe63f
Fixed goroutine leak in tests/integration/clientv3/watch_test.go
...
Signed-off-by: VladSaioc <vladsaioc10@gmail.com >
2022-07-31 23:09:50 +02:00
3a775201c0
Fixed goroutine leak
...
Signed-off-by: VladSaioc <vladsaioc10@gmail.com >
2022-07-31 22:19:59 +02:00
37e4193c60
Merge pull request #14272 from serathius/memberID
...
memberID equals zero in corruption alarm
2022-07-27 06:32:52 +08:00
13d20f8d28
tests: Migrate member list tests to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-07-26 23:28:19 +08:00
bb7e4653c8
tests: Fix member id in CORRUPT alarm
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-26 15:55:22 +02:00
d44bbff278
server: Make corrtuption check optional and period configurable
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-26 09:31:15 +02:00
6697fca97d
server: Implement compaction hash checking
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-26 09:31:14 +02:00
f0f750f4c0
tests: Cover periodic check in tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-25 13:59:31 +02:00
264498258b
tests: Move CorruptBBolt to testutil
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-25 13:59:30 +02:00
99b982e71a
tests: Rename corruptHash to CorruptBBolt
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-25 13:28:30 +02:00
1a6fe4dbc6
update the comment for MaxConcurrentStreams to clearly state it's the max value for each client.
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-07-07 04:51:20 +08:00
f40b676701
add e2e test cases to cover the maxConcurrentStreams
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-07-06 03:43:46 +08:00
ae9ca48a3f
remove duplicate certificate configuration for proxy test
...
The issue was introduced in the following commit,
093282f5ea
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-06-30 10:26:36 +08:00