Gyuho Lee
35a80bc910
integration,embed: ignore embed log output
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
a7fd274c11
integration: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
f879c1de33
integration: use default logger "capnslog"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
68802b333b
integration: re-overwrite "httptest.Server" TLS.Certificates
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 14:19:34 -07:00
Gyuho Lee
b705f6f8f2
Revert "integration: fix httptest TLS server start"
...
This reverts commit 3d3ba8b9cb
.
2018-04-13 13:06:09 -07:00
Gyuho Lee
6ab9776601
integration: add "TestTLSReloadCopyIPOnly"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 13:02:45 -07:00
Gyuho Lee
233af4b4ec
integration: add IP only TLSInfos
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 12:03:55 -07:00
Gyuho Lee
72e23a2b1b
integration/fixtures-expired: add IP only certs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 12:01:35 -07:00
Gyuho Lee
334affa272
integration/fixtures: add IP only certs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 11:58:36 -07:00
Gyuho Lee
3d3ba8b9cb
integration: fix httptest TLS server start
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 11:16:54 -07:00
Gyuho Lee
2d13894a16
integration: fix "fixtures-expired" path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 11:49:42 -07:00
Gyuho Lee
a60bb6104c
*: regenerate "fixtures-expired"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:59:52 -07:00
Gyuho Lee
8a518b01c4
*: revert "internal/mvcc" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-26 17:11:40 -08:00
Gyuho Lee
bb95d190c1
*: revert "internal/auth" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-26 17:11:40 -08:00
Iwasaki Yudai
571e9a9e79
*: allow dbSizeInUse not to equal to dbSize when growing
...
Due to boltdb behavior, dbSizeInUse can be unequal to dbSize even when
dbSize is growing in some conditions. The possible gap between the sizes
is up to a couple of pages.
Closes #9302
2018-02-08 19:33:21 -08:00
Gyuho Lee
a696343a0f
integration: fix govet error in Go tip
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-02 14:33:42 -08:00
Iwasaki Yudai
6b775cd786
*: Add dbSizeInUse to StatusResposne
...
Existing dbSize shows physically allocated DB size and the backend
(boltdb) won't shrink it after a compaction until a user runs the defrag command.
The new dbSizeInUse shows the DB size that excludes free pages created
by compactions so that users can see the actual DB usage. dbSize >=
dbSizeInUse is always true.
Note that dbSizeInUse shows a page-based size and not byte level usage.
2018-02-01 12:15:23 -08:00
Hitoshi Mitake
6c91766490
*: move "auth" to "internal/auth"
2018-01-29 14:57:35 +09:00
Gyuho Lee
80d15948bc
*: move "mvcc" to "internal/mvcc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-26 11:14:41 -08:00
Manjunath A Kumatagi
97817404c9
integration: Fix govet errors
2018-01-25 04:50:40 -05:00
Sam Batschelet
d21fef2d41
integration: add constant RequestWaitTimeout.
2018-01-03 15:53:57 -05:00
Gyuho Lee
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
Gyuho Lee
f38593bbad
clientv3/integration: test large KV requests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-20 10:58:05 -08:00
Gyuho Lee
497412c588
clientv3: call other APIs with default gRPC call options
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-20 10:58:05 -08:00
Gyuho Lee
f87760998b
clientv3: call KV/Txn APIs with default gRPC call options
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-20 10:58:05 -08:00
Gyuho Lee
9442f90016
integration: remove typo in "TestV3LargeRequests"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-20 10:54:40 -08:00
Gyuho Lee
abfc09b1ca
integration: test large request response back from server
...
Address https://github.com/coreos/etcd/issues/9043 .
Won't fix it, but we need test coverage on response back
from server as well.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-19 14:45:20 -08:00
Gyuho Lee
9fb7bbdb2d
integration: add "TestV3AuthWithLeaseRevokeWithRoot"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-14 21:45:50 -08:00
Gyuho Lee
9bd07c91de
integration: test GracefulStop on secure embedded server
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-07 20:36:31 -08:00
Xiang
1c69cc5657
integration: always enable initial corruption check
2017-11-26 16:51:04 -08:00
Gyu-Ho Lee
5a154e8e2b
*: disable gRPC client logs in tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-11 20:56:00 -08:00
Gyu-Ho Lee
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-10 18:46:15 -08:00
Gyu-Ho Lee
f49f5c9094
*: disable grpc client log in tests by default
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-07 15:05:13 -08:00
Gyu-Ho Lee
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
Xiang Li
a33a3b2872
Merge pull request #8773 from jpbetz/fix-lease-grant-int-test
...
test: Deflake TestV3LeasePrmote integration test
2017-10-26 21:01:23 -07:00
Joe Betz
a9996f8768
test: Deflake TestV3LeasePrmote integration test
2017-10-26 16:58:37 -07:00
Gyu-Ho Lee
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
Gyu-Ho Lee
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
Gyu-Ho Lee
09f02e5507
fixtures: add 'localhost' to wildcard cert for local cluster
...
Otherwise, local cluster tests fail.
2017-10-05 22:05:20 +00:00
Gyu-Ho Lee
863dfd1f0e
Merge pull request #8616 from mitake/peer-cn-auth
...
RFC: etcdmain, pkg: CN based auth for inter peer connection
2017-10-04 10:00:53 -07:00
Hitoshi Mitake
1d28a7a69b
integration/fixtures: add cert and key of different CN for testing purpose
2017-10-02 15:59:17 +09:00
Gyu-Ho Lee
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
Gyu-Ho Lee
044aca7f50
integration: configure keepalive parameters for server
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-28 15:34:39 -07:00
Gyu-Ho Lee
741d7e9dca
integration: add Blackhole to bridgeConn
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-28 15:34:36 -07:00
Gyu-Ho Lee
6f76d52a1a
*: deprecate grpc.Code, grpc.ErrorDesc
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-11 09:28:56 -07:00
Gyu-Ho Lee
9a726b424d
*: fix leaky context creation with cancel
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Gyu-Ho Lee
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Gyu-Ho Lee
15c3c1be28
*: replace 'grpc.ErrClientConnTimeout' with 'context.DeadlineExceeded'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-05 14:10:43 -07:00
Anthony Romano
59d232adf9
integration: retry remove in TestDecreaseClusterSize
...
Cluster may go through a second leader election if test machine is
overloaded. Retry remove until it passes without error.
Fixes #8225
2017-09-01 12:06:59 -07:00
Hitoshi Mitake
3fefac17b2
integration: clean up resources in error paths of TestV3WatchFromCurrentRevision
...
Current error paths of TestV3WatchFromCurrentRevision don't clean the
used resources including goroutines. Because go's tests are executed
continuously in a single process, the leaked goroutines makes error
logs bloated like the below case:
https://jenkins-etcd-public.prod.coreos.systems/job/etcd-coverage/2143/
This commit lets the error paths clean the resources.
2017-08-28 16:31:36 +09:00
Anthony Romano
ef5e77e361
Merge pull request #8442 from heyitsanthony/oldrev-test
...
integration: check concurrent auth ops don't cause old rev errors
2017-08-25 12:03:32 -07:00
Anthony Romano
dfed636e5a
integration: check concurrent auth ops don't cause old rev errors
2017-08-23 14:29:38 -07:00
Anthony Romano
b9ef49142c
integration: test serializable snapshot STM with old readset revisions
...
Was hanging.
2017-08-22 19:39:22 -07:00
Anthony Romano
35c5dcefc2
*: cockroachdb/cmux -> soheilhy/cmux
...
Has fixes not in fork. Includes SetReadTimeout.
2017-08-22 09:59:59 -07:00
Anthony Romano
6e02779c4f
integration: add corruption test
2017-08-22 09:59:59 -07:00
Anthony Romano
5c611a493b
integration: grpc on etcd peer ports
2017-08-22 09:59:59 -07:00
Anthony Romano
d3f5109215
test: weaken certs
...
The penalty for TLS is non-trivial with race detection enabled.
Weakening the test certs from 4096-bit RSA to 2048-bit gives ~4x faster
runtimes for TestDoubleTLSClusterSizeOf3.
2017-08-21 03:23:47 -07:00
Gyu-Ho Lee
556c1a1fe0
integration,clientv3/integration: test LeaseLeases API
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-14 14:18:57 -07:00
Gyu-Ho Lee
2513e8c9ce
integration: increase numPuts to write more than 1 page
...
For ppc64.
Reference: https://github.com/coreos/bbolt/issues/15#issuecomment-321700834 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-10 16:43:41 -07:00
Anthony Romano
c3ae033f25
integration: test Put with PrevKey=true
...
Was missing in proxy.
2017-08-03 21:37:06 -07:00
Gyu-Ho Lee
a3ef719598
integration/fixtures: fix base64 flag, add wildcard.json
...
MacOS base64 uses -D and linux uses -d, while --decode
works on both platforms. And add missing server-ca-csr-wildcard.json.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-03 15:31:29 -07:00
Anthony Romano
341664f7b6
integration: test txn lease comparisons
2017-07-31 13:00:04 -07:00
Xiang Li
2a348fb8e9
Merge pull request #8263 from fanminshi/hash_by_rev
...
api: hash by rev
2017-07-26 11:22:33 -07:00
fanmin shi
766c2540ae
integration: add TestV3HashKV in v3_grpc_test.go
2017-07-26 09:48:24 -07:00
Gyu-Ho Lee
9b6799a5b6
integration: increase dial timeout in testTLSReload
2017-07-26 09:37:51 -07:00
Anthony Romano
52dd13fa35
fixtures: generate wildcard DNS SAN cert
...
DNS: *.etcd.local
2017-07-21 16:43:26 -07:00
Gyu-Ho Lee
34fd848a4f
integration: test embed.Etcd.Close with watch
...
Ensure 'Close' returns in time when there are open
connections (watch streams).
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-14 15:32:08 -07:00
Anthony Romano
e29db923bc
*: move v2http handlers without /v2 prefix to etcdhttp
...
Lets --enable-v2=false configurations provide /metrics, /health, etc.
Fixes #8167
2017-07-07 18:35:57 -07:00
Gyu-Ho Lee
a57405a958
Merge pull request #8153 from gyuho/leadership-transfer
...
*: expose Leadership Transfer API to clients
2017-07-06 13:00:08 -07:00
Hitoshi Mitake
6ea5676db4
Merge pull request #8145 from mitake/non-authorized-rpcs
...
integration: add a test case for non authorized RPCs
2017-06-24 11:51:47 +09:00
Gyu-Ho Lee
581a83dfd9
clientv3/*: add 'MoveLeader' method to 'Maintenance'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-23 13:07:17 -07:00
Gyu-Ho Lee
c5532dd2a2
integration: test 'MoveLeader' service
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-23 12:53:22 -07:00
Anthony Romano
ac061671d5
Revert "integration: remove lease exist checking on randomized expiry"
...
This reverts commit 95bc33f37f
. The new
lease extension algorithm should pass this test.
2017-06-22 11:25:45 -07:00
Anthony Romano
310a09691f
Merge pull request #8150 from heyitsanthony/update-db-size-defrag
...
mvcc: use GaugeFunc metric to load db size when requested
2017-06-22 09:38:00 -07:00
Anthony Romano
4e6c77185b
integration: test mvcc db size metric is updated following defrag
2017-06-21 22:59:48 -07:00
Hitoshi Mitake
6fe2249bcd
integration: add a test case for non authorized RPCs
...
This commit add a new test case which ensures that non authorized RPCs
failed with ErrUserEmpty. The case can happen in a schedule like
below:
1. create a cluster
2. create clients
3. enable authentication of the cluster
4. the clients issue RPCs
Fix https://github.com/coreos/etcd/issues/7770
2017-06-22 11:35:37 +09:00
Anthony Romano
0dd4c2ac69
integration: test grpc nested txns
2017-06-21 14:33:15 -07:00
Gyu-Ho Lee
1df8b90d67
Merge pull request #8121 from gyuho/health-check-service
...
*: add basic health check service
2017-06-20 13:07:52 -07:00
Gyu-Ho Lee
8ce2c79197
integration: add 'HealthClient.Check' test
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-20 13:02:11 -07:00
Anthony Romano
798b14979c
fixtures: add gencerts.sh, generate CRL
2017-06-19 15:23:41 -07:00
Anthony Romano
45fbac5544
Merge pull request #8025 from heyitsanthony/txn-cmp-range
...
api: txn comparisons on ranges
2017-06-18 11:11:43 -07:00
Anthony Romano
fafb054624
integration: test txn range comparisons
2017-06-16 12:13:27 -07:00
Anthony Romano
a825709940
integration: test mvcc db size metric is set on restore
2017-06-16 11:27:07 -07:00
Anthony Romano
e962b0c849
Merge pull request #7909 from heyitsanthony/unptr-cfg
...
etcdserver, embed, integration: don't use pointer for ServerConfig
2017-06-15 20:47:30 -07:00
Gyu-Ho Lee
5e059fd8dc
*: use metadata Incoming/OutgoingContext
...
Fix https://github.com/coreos/etcd/issues/7888 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-15 16:41:23 -07:00
Anthony Romano
dcf52bbfac
etcdserver, embed, integration: don't use pointer for ServerConfig
...
ServerConfig is owned by etdcserver and unshared, so don't pass or store by
pointer. Also removes duplicated field 'snapCount'.
2017-06-15 13:02:13 -07:00
Gyu-Ho Lee
95bc33f37f
integration: remove lease exist checking on randomized expiry
...
Lease with TTL 5 should be renewed with randomization,
thus it's still possible to exist after 3 seconds.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-15 12:57:55 -07:00
Anthony Romano
3a6180d490
Merge pull request #8072 from heyitsanthony/auth-proxy-test
...
integration: test auth layer in grpc proxy tests
2017-06-09 11:32:27 -07:00
Anthony Romano
798119ed6f
integration: test auth layer in grpcproxy tests
2017-06-09 09:36:16 -07:00
Anthony Romano
ad22aaa354
integration: test txn comparison and concurrent put ordering
2017-06-09 09:20:38 -07:00
Hitoshi Mitake
7b68318284
integration: add test cases for lease revoking with auth
2017-06-07 17:46:14 -07:00
Anthony Romano
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
Anthony Romano
166ae10ca3
integration: use unixs:// if client port configured for tls
2017-05-31 15:51:48 -07:00
fanmin shi
68a72c6b6e
v3rpc: change grpc max recv size as needed.
2017-05-25 11:01:51 -07:00
fanmin shi
9e7740011b
etcdserver: add --max-request-bytes flag
2017-05-25 11:01:38 -07:00
fanmin shi
e9f464debc
integration: creation of cluster now takes maxTxnOps
2017-05-24 14:48:44 -07:00
fanmin shi
ae7ddfb483
etcdserver: add --max-txn-ops flag
...
--max-txn-ops allows users to define the maximum transaction operations
for each txn request. it defaults at 128.
Fixes #7826
2017-05-24 10:32:32 -07:00
Gyu-Ho Lee
29bbcdd110
integration: bump up 'TestV3LeaseRequireLeader' timeout to 5-sec
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-18 16:44:57 -07:00
Anthony Romano
6ce9aed8c5
Merge pull request #7881 from heyitsanthony/testctl-logging
...
e2e: more debugging output for lock and elect tests
2017-05-12 12:01:08 -07:00
Anthony Romano
5b4677b7d7
integration: reset default logging level in TestRestartRemoved
2017-05-12 10:22:29 -07:00