Gyuho Lee
42ad719155
*: update test Go version / release version
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-09-05 21:46:56 -07:00
Gyuho Lee
9a2af7378a
tests/e2e: skip release tests until release candidate
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-08-03 00:09:44 -07:00
Gyuho Lee
b842cf7770
tests/e2e: fix upgrade, metrics tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-08-02 15:57:45 -07:00
Gyuho Lee
5ef8f2770c
Merge pull request #10962 from hexfusion/promote_mvcc
...
metrics: promote etcd_debugging_mvcc put_total and delete_total
2019-07-31 22:24:40 -07:00
Sam Batschelet
f46ee91863
metrics: promote etcd_debugging_mvcc put_total and delete_total
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-08-01 01:28:07 +00:00
Gyuho Lee
80efba3368
tests/e2e: fix curl proclaim error message
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 21:28:15 -07:00
Gyuho Lee
ae87b21a72
tests/e2e: enable-v2 for v2 e2e tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:07:36 -05:00
John Millikin
95f3138b5f
tests: Use more deterministic error message in TestEtcdPeerNameAuth
2019-07-10 14:24:20 +09:00
John Millikin
c6686734b1
tests: Use 'localhost' to match SAN of `integration/fixtures/server.crt`
2019-07-10 13:33:14 +09:00
John Millikin
5824421f8b
etcdman, pkg: Rename new flags to 'hostname'
2019-07-10 09:30:02 +09:00
John Millikin
9a53601a18
etcdmain, pkg: Support peer and client TLS auth based on SAN fields.
...
Etcd currently supports validating peers based on their TLS certificate's
CN field. The current best practice for creation and validation of TLS
certs is to use the Subject Alternative Name (SAN) fields instead, so that
a certificate might be issued with a unique CN and its logical
identities in the SANs.
This commit extends the peer validation logic to use Go's
`(*"crypto/x509".Certificate).ValidateHostname` function for name
validation, which allows SANs to be used for peer access control.
In addition, it allows name validation to be enabled on clients as well.
This is used when running Etcd behind an authenticating proxy, or as
an internal component in a larger system (like a Kubernetes master).
2019-07-10 09:30:02 +09:00
Hitoshi Mitake
7bbc536e1c
tests/e2e: initialize UserAddOptions{} field in testV3CurlAuth()
2019-06-06 23:07:41 +09:00
Gyuho Lee
1caaa9ed4a
test: test update for Go 1.12.5 and related changes
...
Update to Go 1.12.5 testing. Remove deprecated unused and gosimple
pacakges, and mask staticcheck 1006. Also, fix unconvert errors related
to unnecessary type conversions and following staticcheck errors:
- remove redundant return statements
- use for range instead of for select
- use time.Since instead of time.Now().Sub
- omit comparison to bool constant
- replace T.Fatal and T.Fatalf in tests with T.Error and T.Fatalf respectively because the goroutine calls T.Fatal must be called in the same goroutine as the test
- fix error strings that should not be capitalized
- use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...))
- use he status code of Canceled instead of grpc.ErrClientConnClosing which is deprecated
- use use status.Errorf instead of grpc.Errorf which is deprecated
Related #10528 #10438
2019-06-05 17:02:05 -04:00
Hitoshi Mitake
8257dfdb51
e2e: add test cases for a user without password
2019-05-30 21:59:30 +09:00
Hitoshi Mitake
5a67dd788d
*: support creating a user without password
...
This commit adds a feature for creating a user without password. The
purpose of the feature is reducing attack surface by configuring bad
passwords (CN based auth will be allowed for the user).
The feature can be used with `--no-password` of `etcdctl user add`
command.
Fix https://github.com/coreos/etcd/issues/9590
2019-05-30 21:59:30 +09:00
Gyuho Lee
8ff5914404
tests: update semaphore upgrade tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-05-28 15:39:35 -07:00
Gyuho Lee
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-05-28 15:39:35 -07:00
Jingyi Hu
e4296bbad9
tests/e2e: Add test for learner member add
...
Added an e2e test to exercise "etcdctl member add --learner".
2019-05-14 13:10:22 -07:00
shivaramr
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
Gyuho Lee
5877763990
tests/e2e: fix "authLeaseTestLeaseRevoke"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-02-15 09:39:03 -08:00
Hitoshi Mitake
a1f964afd3
tests: add a new e2e test case for the combination of non empty CN and grpc proxy
2019-01-25 00:43:57 +09:00
Hitoshi Mitake
69e2faec00
tests: update TestV3CurlAuthClientTLSCertAuth for using cert with empty CN
2019-01-23 03:26:34 +09:00
johncming
fffb982f1a
tests/e2e: add missing return error.
2019-01-09 13:47:09 +08:00
Sam Batschelet
577d7c0df2
e2e: update test to reflect (ST1005) update.
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-01-08 21:04:20 -05:00
Sam Batschelet
99704e2a97
e2e: add ClientTLSCertAuth coverage for curl v3 auth tests
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2019-01-08 12:31:20 -05:00
Gyuho Lee
0226481584
tests/e2e: test cluster version
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-11-13 21:49:33 -08:00
Sam Batschelet
61c8d7a582
tests/docker-dns-srv: add tests for docker-dns-srv-name.
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2018-11-09 13:51:04 -05:00
Gyuho Lee
8db439d693
*: use "go.etcd.io/bbolt"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-29 12:31:28 -07:00
Gyuho Lee
379a1869c5
tests/Dockerfile: update import path to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 18:07:41 -07:00
Gyuho Lee
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
Joe Betz
b3b06a862a
clientv3: Fix maintenance APIs to directly dial grpc endpoints correctly.
2018-07-23 11:20:15 -07:00
Gyuho Lee
42bef8460c
*: clean up code format
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-21 16:34:56 -07:00
Gyuho Lee
1c04820026
tests: integrate "github.com/mgechev/revive" to fmt tests
...
https://github.com/mgechev/revive
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-21 15:49:53 -07:00
Gyuho Lee
6a16c7974a
tests/e2e: handle cipher suite mismatch error in ubuntu
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-05 10:50:07 -07:00
Gyuho Lee
b01d560be0
tests/e2e: remove unnessary type conversion
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-05 10:10:30 -07:00
Gyuho Lee
e1a978c3ce
tests/Dockerfile: revert back to ubuntu
...
Fedora is too big (550 MB),
while Ubuntu image is only 350 MB.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-07-05 10:07:11 -07:00
Gyuho Lee
08474ed5bd
tests/e2e: do not run cipher suite tests for gRPC proxy
...
```
../../bin/etcd-30074: 2018-06-19 11:49:12.052662 I | etcdmain: v2 proxy started listening on client requests on "https://localhost:20002 "
../../bin/etcd-30083: Error: unknown flag: --cipher-suites
../../bin/etcd-30083: Usage:
../../bin/etcd-30083: etcd grpc-proxy start [flags]
```
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-19 11:49:59 -07:00
Gyuho Lee
f3ec7d2aed
tests: move "amd64-unit" to travis
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:37:52 -07:00
Gyuho Lee
6931e9dd23
tests/semaphore: remove coverage, grpcproxy tests, add unit tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-18 13:24:20 -07:00
Gyuho Lee
0d13176c99
tests/e2e: do not run cipher suite tests in coverage tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 14:32:27 -07:00
Gyuho Lee
8b5cd847d0
tests/semaphore.test.bash: use "sudo" for docker, clean up
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 13:52:56 -07:00
Gyuho Lee
bf34c6a13b
tests: run coverage tests in Semaphore
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 13:21:08 -07:00
Gyuho Lee
1be4f7526c
tests/semaphore.test.bash: match "DATA RACE"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 13:06:33 -07:00
Gyuho Lee
8147e9260f
tests: run proxy tests in Semaphore
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-13 12:57:39 -07:00
Gyuho Lee
f4ea05803e
semaphore: use latest v3.3 patch release for release test
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-08 10:53:47 -07:00
Gyuho Lee
082c3ef0bc
*: use Go 1.10.3 for CI tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-08 10:50:12 -07:00
Gyuho Lee
52ae578922
Merge pull request #9807 from gyuho/move-leader
...
ctlv3: support TLS endpoints for move-leader command
2018-06-05 15:46:49 -07:00
Gyuho Lee
6d9cb7ac9a
tests/e2e: test move-leader command with TLS
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 13:45:14 -07:00
Gyuho Lee
d82f726da8
tests/e2e: test client-side cipher suites with curl
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-06-05 12:59:29 -07:00
Gyuho Lee
b153be2acb
tests/e2e: fix "testCtlV2Backup"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-31 14:25:24 -07:00
Vimal K
25bc65794f
etcdctl/ctlv3: etcd v3.4 makes ETCDCTL_API=3 by default
2018-05-29 06:27:20 +05:30
Sam Batschelet
b30a1166e0
auth: fix panic using WithRoot and improve JWT coverage
2018-05-22 12:53:27 -04:00
Gyuho Lee
7dabd6c255
*: rename internal packages in tools/testing
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-21 07:45:34 -07:00
Gyuho Lee
31094e5616
tests/e2e: rename to "snapshotCount"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-18 15:27:48 -07:00
Gyuho Lee
4ce10157ff
tests/e2e: rename "SnapshotCount"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-18 14:40:02 -07:00
Gyuho Lee
6de62861b7
*: use "--logger=zap" for Procfile
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-17 02:22:34 -07:00
Gyuho Lee
df87dba218
tests/e2e: use different parameters
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-09 15:42:45 -07:00
Gyuho Lee
054cdcd127
tests/Dockerfile: add "mvdan.cc/unparam"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-09 15:39:44 -07:00
Gyuho Lee
03bf62f569
tests/e2e: update v2 proxy ready message
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-04 20:04:01 -07:00
Gyuho Lee
acf671a94c
tests/e2e: separate coverage tests for exec commands
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-03 17:22:34 -07:00
Gyuho Lee
932ef6c4a3
tests: use Go 1.10.2 in Semaphore test
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-05-01 10:08:43 -07:00
Gyuho Lee
42147ae0a0
tests/Dockerfile: add "github.com/mdempsky/unconvert"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-30 15:32:16 -07:00
Gyuho Lee
02e2e3def7
tests/docker-dns-srv: revert Dockerfile change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-26 15:13:09 -07:00
Gyuho Lee
c460a09225
tests: use zap logger in DNS tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-26 15:12:13 -07:00
Gyuho Lee
8058513d84
*: clarify gRPC gateway changelogs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-20 10:33:03 -07:00
Gyuho Lee
1c44293f7e
tests/e2e: comment out TestEtcdCorruptHash debugging lines
...
No need
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 19:04:34 -07:00
Gyuho Lee
a3b9d828ed
tests/e2e: fix gateway tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 18:25:30 -07:00
Gyuho Lee
92c32743c9
tests/e2e: fix TestIssue6361
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 18:01:12 -07:00
Gyuho Lee
ae9ccd883d
etcdctl/ctlv3: fix snapshot command e2e tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
6da2e51627
tests/semaphore: only run e2e tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-10 18:37:54 -07:00
Gyuho Lee
9cce7c71b8
tests/docker: fix indentation
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 15:13:09 -07:00
Gyuho Lee
367b21c898
tests/Dockerfile: add "REPLACE_ME_GO_VERSION" back
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 15:10:48 -07:00
Gyuho Lee
89c58b6f7a
tests/e2e: fix "configJWT" path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 13:41:46 -07:00
Gyuho Lee
824982d1eb
tests/e2e: fix TestEtcdExampleConfig
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 13:12:55 -07:00
Gyuho Lee
422acc9018
tests/e2e: fix COVERDIR path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 12:46:55 -07:00
Gyuho Lee
a8a5176f1d
tests/e2e: fix exec paths
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 11:12:42 -07:00
Gyuho Lee
774f6652df
semaphore.sh: move to "tests/semaphore.test.bash"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:48:54 -07:00
Gyuho Lee
0e7f1100e3
cover: move coverage test script to "tests"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:47:32 -07:00
Gyuho Lee
72211db7cf
tests: move internal "e2e"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:37:28 -07:00
Gyuho Lee
20e1179fac
Dockerfile-test: move to "tests"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:33:25 -07:00
Gyuho Lee
140374e25d
*: move "scripts/docker-*" to "tests"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:31:00 -07:00
Xiang Li
2ba57ee75d
*: remove unused pkgs
2014-09-03 09:20:20 -07:00
Blake Mizerany
0881021e54
all config -> cfg
2014-09-03 09:20:07 -07:00
Blake Mizerany
d77773acb3
server: ignore server in build/tests
2014-09-03 09:20:06 -07:00
Yicheng Qin
0197ce4c66
server: move TestMultiNodeKillAllAndRecovery to etcd/
2014-09-03 09:20:00 -07:00
Yicheng Qin
215820dd40
server: move TestMultiNodeKillOne to etcd/
2014-09-03 09:20:00 -07:00
Yicheng Qin
a0fbc289ec
server: move discovery tests to etcd/
...
TestDiscoveryDownNoBackupPeersWithDataDir -> TestRunByDataDir
remove TestDiscoveryRestart
2014-09-03 09:20:00 -07:00
Yicheng Qin
01322cd243
server: move TestClusterConfigReload to etcd/
2014-09-03 09:20:00 -07:00
Yicheng Qin
efaef49734
server: move TestSingleNodeRecovery under etcd/
2014-09-03 09:20:00 -07:00
Xiang Li
3fba10c8e6
etcd: add version handlers
2014-09-03 09:19:58 -07:00
Yicheng Qin
6534525cf8
server: add bootstrap tests
2014-09-03 09:19:57 -07:00
Xiang Li
0ccd09532b
etcd: add joinThroughFollower test
2014-09-03 09:19:52 -07:00
Xiang Li
a0c0638744
tests: remove unnecessary test
2014-09-03 09:19:51 -07:00
Xiang Li
60c8dbe0c9
etcd: rewrite kill_leader and kill_random test
2014-09-03 09:19:51 -07:00
Yicheng Qin
02ced2c2d7
v1: deprecate v1 support
...
Etcd moves to 0.5 without the support of v1.
2014-09-03 09:19:49 -07:00
Rob Strong
494d2c67aa
fix(peer_server) set content type to application/json in admin
2014-06-21 13:13:10 -04:00
Yicheng Qin
25e69d9659
fix(multi_node_kill_all_and_recovery_test): ensure cluster is up
2014-06-02 14:43:51 -07:00
Yicheng Qin
e04a188358
fix(remove_node_test): remove unnecessary cluster configuration
...
The cluster configuration operation is originally to make sure
the instance won't be added back automatically between removal and
check for the number of existing peer-mode instances. But this
could make some node removed before the removal command.
Use longer sync interval instead to avoid this problem.
2014-06-02 13:30:19 -07:00
Yicheng Qin
7cb126967c
fix(simple_snapshot_test): enlarge reasonable index range
2014-05-31 10:42:31 -07:00
Yicheng Qin
444e017c05
fix(remove_node_test): ensure cluster config is activated
2014-05-31 10:32:03 -07:00