419ffb77ab
Merge pull request #11287 from YoyinZyc/version-test-rolling-start
...
e2e: add cluster version test with rolling start servers
2019-11-26 15:12:54 -08:00
cab4cace5e
tests: change MANUAL_VER to 3.4.3
2019-11-25 10:57:47 -08:00
5a1102341e
e2e: only expect cluster's major version is > 3 in release upgrade tests.
2019-11-25 10:57:27 -08:00
4243ebd3ef
e2e: add cluster version test for rolling start servers
2019-10-22 12:47:56 -07:00
c57f8b3af8
nit: fix type s/custer/cluster
2019-10-21 13:00:19 -07:00
321e3ce1a6
e2e: add cluster version test
2019-10-21 11:14:18 -07:00
1333abc606
etcdserver: strip patch version in cluster version
...
Strip patch version in cluster version metrics.
2019-10-14 16:59:09 -07:00
eb4b800fda
tests: updated ubuntu version in Dockerfile
2019-10-08 14:30:15 -07:00
79bfc90f2b
tests/docker-dns: adding tests for certs with dns names.
2019-10-08 14:23:10 -07:00
42ad719155
*: update test Go version / release version
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-09-05 21:46:56 -07:00
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
b842cf7770
tests/e2e: fix upgrade, metrics tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-08-02 15:57:45 -07:00
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
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
80efba3368
tests/e2e: fix curl proclaim error message
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-07-29 21:28:15 -07:00
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
95f3138b5f
tests: Use more deterministic error message in TestEtcdPeerNameAuth
2019-07-10 14:24:20 +09:00
c6686734b1
tests: Use 'localhost' to match SAN of integration/fixtures/server.crt
2019-07-10 13:33:14 +09:00
5824421f8b
etcdman, pkg: Rename new flags to 'hostname'
2019-07-10 09:30:02 +09:00
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
7bbc536e1c
tests/e2e: initialize UserAddOptions{} field in testV3CurlAuth()
2019-06-06 23:07:41 +09:00
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
8257dfdb51
e2e: add test cases for a user without password
2019-05-30 21:59:30 +09:00
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
8ff5914404
tests: update semaphore upgrade tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
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
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
5877763990
tests/e2e: fix "authLeaseTestLeaseRevoke"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-02-15 09:39:03 -08:00
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
69e2faec00
tests: update TestV3CurlAuthClientTLSCertAuth for using cert with empty CN
2019-01-23 03:26:34 +09:00
fffb982f1a
tests/e2e: add missing return error.
2019-01-09 13:47:09 +08:00
577d7c0df2
e2e: update test to reflect (ST1005) update.
...
Signed-off-by: Sam Batschelet <sbatsche@redhat.com >
2019-01-08 21:04:20 -05:00
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
0226481584
tests/e2e: test cluster version
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-11-13 21:49:33 -08:00
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
8db439d693
*: use "go.etcd.io/bbolt"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-29 12:31:28 -07:00
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
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
b3b06a862a
clientv3: Fix maintenance APIs to directly dial grpc endpoints correctly.
2018-07-23 11:20:15 -07:00
42bef8460c
*: clean up code format
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-07-21 16:34:56 -07:00
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
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
b01d560be0
tests/e2e: remove unnessary type conversion
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-07-05 10:10:30 -07:00
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
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
f3ec7d2aed
tests: move "amd64-unit" to travis
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-06-18 13:37:52 -07:00
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
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
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