91365174b3
tests: a test case for watch with auth token expiration
...
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com >
2022-10-04 22:55:36 +09:00
8f4735dfd4
server: Require either cluster version v3.6 or --experimental-enable-lease-checkpoint-persist to persist lease remainingTTL
...
To avoid inconsistant behavior during cluster upgrade we are feature
gating persistance behind cluster version. This should ensure that
all cluster members are upgraded to v3.6 before changing behavior.
To allow backporting this fix to v3.5 we are also introducing flag
--experimental-enable-lease-checkpoint-persist that will allow for
smooth upgrade in v3.5 clusters with this feature enabled.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-07-22 10:28:29 +02:00
fd51434b54
backport 3.5: #13676 load all leases from backend
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2022-07-19 16:08:01 -07:00
c499d9b047
integration: relax leader timeout from 3s to 4s
...
The integration jobs fail with timeouts slightly over 3s, increase
this marginally so false failures are less prevalent.
2021-03-29 10:17:44 -07:00
f44aaf8248
integration: add flag WatchProgressNotifyInterval in integration test
2020-09-09 12:39:42 -07:00
e67b9829b6
*: enable lease checkpoint via experimental flag
...
Primary lessor persist lease remainingTTL only if experimental flag
"--experimental-enable-lease-checkpoint" is set.
2019-06-05 15:30:03 -07:00
6bf609b96d
integration: update TestMemberPromote test
...
Update TestMemberPromote to include both learner not-ready and learner
ready test cases.
Removed unit test TestPromoteMember, it requires underlying raft node to
be started and running. The member promote is covered by the integration
test.
2019-05-28 18:50:13 -07:00
d0c1b3fa38
etcdserver: learner return Unavailable for unsupported RPC
...
Make learner return code.Unavailable when the request is not supported
by learner. Client balancer will retry a different endpoint.
2019-05-28 18:47:03 -07:00
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
57a11eb1e1
integration: add TestKVForLearner
...
Adding TestKVForLearner. Also adding test utility functions for clientv3
integration tests.
2019-05-15 13:27:38 -07:00
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
dca0dec382
integration: use default log configuration
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-02-21 11:00:01 -08:00
2be5994f61
integration: Replace *testing.T with testing.TB
...
Use testing.TB for integration test helpers to enable usage in benchmarks
2018-09-04 22:34:40 +02:00
07fcc26799
*: fix gofmt warnings with Go 1.11
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 21:45:24 -07:00
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 17:47:55 -07:00
750b87d622
Merge pull request #9924 from jpbetz/persist-lease-deadline
...
lease: Persist remainingTTL to prevent indefinite auto-renewal of long lived leases
2018-07-24 09:39:57 -07:00
d1de41efe1
lease: Add unit and integration tests for lease checkpointing
2018-07-23 16:12:42 -07:00
42bef8460c
*: clean up code format
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-07-21 16:34:56 -07:00
05c57a0ea4
integration: Fix unit test failures from new grpc LB changes, fix bom
2018-06-15 13:41:28 -07:00
1f6548b751
clientv3: Stop expecting retry in integration tests with new grpc balancer
2018-06-15 13:41:28 -07:00
9304d1abd1
clientv3: Fix TLS test failures by returning DeadlineExceeded error from dial without any additional wrapping
2018-06-15 13:41:28 -07:00
f84f554301
clientv3: Fix auth client to use endpoints instead of host when dialing, fix tests to block on dial when required.
2018-06-15 13:41:28 -07:00
66e65cd660
clientv3: Avoid timeouts in ordering test
2018-06-15 13:41:28 -07:00
a52f16d4a6
integration: test lease revoke routine with JWT token
...
https://github.com/coreos/etcd/pull/9698 wasn't really testing
the panic code path when leases are expiry.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-24 11:38:31 -07:00
7940113906
*: move internal "etcdserver/api/rafthttp"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-21 10:31:16 -07:00
aa99ed54b7
integration: rename "SnapshotCount"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-18 14:41:30 -07:00
b7443ad849
integration: remove unused parameters
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-09 15:42:45 -07:00
bf432648ae
*: make bcrypt-cost configurable
2018-05-03 11:43:32 -07:00
1d18f45caf
integration: silence http server logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 12:58:56 -07:00
58b7ab97eb
integration: use structured logging in peer handler
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 12:53:56 -07:00
d2e1484762
integration: support structured logging in "v2http"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 11:57:23 -07:00
21d75570ee
integration: use "zap" logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-01 16:15:09 -07:00
3fe9030d34
integration: set InitialElectionTickAdvance to true by default
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-19 17:45:23 -07:00
68802b333b
integration: re-overwrite "httptest.Server" TLS.Certificates
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-13 14:19:34 -07:00
b705f6f8f2
Revert "integration: fix httptest TLS server start"
...
This reverts commit 3d3ba8b9cb
.
2018-04-13 13:06:09 -07:00
6ab9776601
integration: add "TestTLSReloadCopyIPOnly"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-13 13:02:45 -07:00
233af4b4ec
integration: add IP only TLSInfos
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-13 12:03:55 -07:00
3d3ba8b9cb
integration: fix httptest TLS server start
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-13 11:16:54 -07:00
2d13894a16
integration: fix "fixtures-expired" path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-09 11:49:42 -07:00
a60bb6104c
*: regenerate "fixtures-expired"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-09 10:59:52 -07:00
d21fef2d41
integration: add constant RequestWaitTimeout.
2018-01-03 15:53:57 -05:00
3d56045da0
integration: bump up wait leader timeout for slow CIs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-20 10:58:05 -08:00
f38593bbad
clientv3/integration: test large KV requests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-20 10:58:05 -08:00
1c69cc5657
integration: always enable initial corruption check
2017-11-26 16:51:04 -08:00
a41f3b64aa
integration: expose ElectionTimeout, multiply ticks to timeout
...
To be consistent with etcdserver
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-30 09:22:40 -07:00
b6f770fc24
integration: use variadic parameters for *Partition
...
'member' type is not exported.
In network partition tests, we want do
InjectPartition(t, clus.Members[lead], clus.Members[lead+1])
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-25 14:55:03 -07:00
ff2ed93b5c
clientv3/integration: do not create v3 clients when not used
...
Add 'SkipCreatingClients' field to skip creating clients if not used.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-24 16:59:41 -07:00
bc5b7c0937
integration: enable client debug logging on EXPECT_DEBUG
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-29 12:19:59 -07:00
044aca7f50
integration: configure keepalive parameters for server
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-28 15:34:39 -07:00
741d7e9dca
integration: add Blackhole to bridgeConn
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-28 15:34:36 -07:00