Commit Graph

54 Commits (9b8412773959d9e940c4319e88af23163e5c2fcf)

Author SHA1 Message Date
fanmin shi f203a61469 e2e: unshadow err and remove bogus err checking in spawnWithExpects() 2017-02-17 14:47:24 -08:00
fanmin shi 1d521556ae e2e: modify e2e to run code coverage 2017-02-15 09:51:50 -08:00
Hitoshi Mitake cd9f0a1721 e2e: add a case for CommonName auth of v3 API 2017-01-31 17:22:12 +09:00
Anthony Romano 2448f6a003 e2e: close process if spawnWithExpects fails
Was causing a process leak in TestCtlV3Alarm
2016-10-10 15:52:37 -07:00
Gyu-Ho Lee 5c51c600aa e2e: skip when 'etcdProcess' is nil 2016-10-01 00:45:28 -07:00
Gyu-Ho Lee 7cd7b5d539 e2e: rename 'backends' to 'processes' 2016-09-15 18:30:08 +09:00
Gyu-Ho Lee bb337c87d0 e2e: test snapshot restore 2016-09-15 17:58:00 +09:00
Anthony Romano 965b2901d5 Merge pull request #6156 from heyitsanthony/remove-member-quorum
etcdserver: reject member removal that breaks active quorum
2016-08-11 11:40:38 -07:00
Anthony Romano aa9837e8ff e2e: support --strict-reconfig-check=false 2016-08-11 11:14:14 -07:00
Anthony Romano eb97aba581 e2e: test etcd boots with example config file 2016-08-10 09:45:17 -07:00
Xiang Li 06e2338108 Merge pull request #6113 from ypu/e2e
Add some test flags for e2e test
2016-08-10 09:28:27 -07:00
Yiqiao Pu a5e4fbd335 e2e: Make the certificate file path configurable
This commit will help us to run the e2e tests in an enviroment
without e2e source code more convenient.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
2016-08-10 15:40:12 +08:00
Yiqiao Pu 2ca87f6c03 e2e: Make it can run with exist binary
Add the bin-dir option to the command line, so the e2e tests can
run with an exist binary. For example(run the command under e2e
directory):
go test -v -timeout 10m -bin-dir /usr/bin -cpu 1,2,4

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
2016-08-10 15:40:12 +08:00
Gyu-Ho Lee 311c19e494 e2e: use unix port for release tests
Fix https://github.com/coreos/etcd/issues/5947.

When we restart, the previous port could have been still bind
by the OS. Use Unix port to avoid such rebind cases.
2016-08-08 14:26:19 -07:00
Xiang Li c603b5e6a1 e2e: add gateway test 2016-07-21 16:19:54 -07:00
Gyu-Ho Lee 42db8f55b2 e2e: test auth enabled with CN name cert 2016-07-20 16:55:45 -07:00
Anthony Romano 6b487fb199 e2e: wait for every etcd server to publish to cluster
If etcdctl accesses the cluster before all members are published, it
will get an "unsupported protocol scheme" error. To fix, wait for both
the capabilities and published message.

Fixes #5824
2016-07-13 17:01:43 -07:00
Gyu-Ho Lee e8e561e8f5 e2e: add basic upgrade tests 2016-07-11 11:28:04 -07:00
Anthony Romano 6686833e51 e2e: check for empty string as etcdctl backup result
Was checking for an ignored wal file warning. Added support for
TMPDIR since repeated runs were failing on left over test data.
2016-05-31 06:25:23 -07:00
Gyu-Ho Lee dd8a36820e proxy/httpproxy: fix v2 proxy log header
Replace all with capnslog
2016-05-23 15:45:49 -07:00
Gyu-Ho Lee 96d06d4f2c e2e: add Restart, Start, grpcEndpoints methods 2016-05-23 14:27:48 -07:00
Gyu-Ho Lee 06950e41b4 e2e: v2 backup test
Fix https://github.com/coreos/etcd/issues/5367.
2016-05-17 15:35:39 -07:00
Gyu-Ho Lee dd8e81070a e2e: add force-new-cluster flag 2016-05-17 12:48:26 -07:00
Gyu-Ho Lee 63e6228a0b e2e: fix typo(isClientAuthTLS to isClientAutoTLS) 2016-05-17 12:47:21 -07:00
Gyu-Ho Lee ef44f71da9 *: update LICENSE header 2016-05-12 20:51:48 -07:00
Xiang Li c5bf6a9d9e e2e: add test for auto client tls 2016-05-03 08:35:02 -07:00
Gyu-Ho Lee 6eb25751ec e2e: make-mirror 2016-04-20 15:13:45 -07:00
Gyu-Ho Lee d976121e35 e2e: test alarm 2016-04-20 11:38:53 -07:00
Gyu-Ho Lee fefb58dc90 e2e: clean up, add more tests 2016-04-14 11:42:57 -07:00
Anthony Romano 604a73c833 e2e: remove sh in spawnCmd
certain shells claim the ppid for expect processes which interferes with
signals
2016-04-13 09:12:40 -07:00
Gyu-Ho Lee d78345244b *: log, expect by capability check 2016-04-07 17:18:51 -07:00
Xiang Li f31105bc08 Merge pull request #4994 from xiang90/clu
etcdserver: move membership related code to membership pkg
2016-04-07 14:39:18 -07:00
Xiang Li bf2289ae00 etcdserver: move membership related code to membership pkg 2016-04-07 14:21:37 -07:00
Gyu-Ho Lee 84bf6e7462 e2e: lease tests, fix minor format string 2016-04-07 11:18:49 -07:00
Gyu-Ho Lee 2779341250 e2e: clean up, return all lines in error
1. change file names
2. now if sub-command errors, the test will receive all
lines from stdout and stderr.

Expected output:

```
read /dev/ptmx: input/output error (expected key2, got ["key1\r\n" "val1\r\n" ""])
```

3. change how we check GRPC timeout (only bypass timeout error when we give 0
timeout)
2016-04-07 10:41:56 -07:00
Anthony Romano dc420d660e e2e, pkg/expect: distinguish between Stop and Close
Fixes #4928
2016-04-03 11:45:02 -07:00
Gyu-Ho Lee b0cc0e443c *: clean up if, bool comparison 2016-04-02 12:55:11 -07:00
Gyu-Ho Lee a6c6bbd81c e2e: ctl tests with multi expects 2016-03-30 22:09:23 -07:00
Anthony Romano 5022dce31a e2e: use pkg/expect 2016-03-30 15:14:24 -07:00
Xiang Li 70a9391378 *: enable v3 by default 2016-03-23 17:01:36 -07:00
Xiang Li 4d2227e5ab e2e: combine cfg.isClientTLS and cfg.isClientBoth 2016-03-23 15:30:58 -07:00
Xiang Li 9d55420a00 e2e: add an e2e test for TLS/non-TLS on the same port 2016-03-23 13:43:47 -07:00
Anthony Romano bd832e5b0a *: migrate Godeps to vendor/ 2016-03-22 17:10:28 -07:00
Gyu-Ho Lee 8396da3e83 etcdctlv3: add dial timeout flag
Fix https://github.com/coreos/etcd/issues/4836.
2016-03-22 13:15:26 -07:00
Anthony Romano d1ee12566b e2e: test auto tls 2016-03-21 11:44:14 -07:00
Anthony Romano 4a6c06db13 e2e: put etcd datadir in golang tempdir
The command "TMPDIR=/mnt/myramdisk/etcd go test -v" was making data
directories in pwd instead of the tmpdir.
2016-03-10 11:12:08 -08:00
Anthony Romano d0f6f49085 e2e: quorum cleanup
If a test gets data without quorum, it should only have one node in the
test cluster to avoid reading stale data.

Fixes #4694
2016-03-05 20:16:07 -08:00
Anthony Romano 1719bc0b0c e2e: tls proxy tests 2016-02-14 00:55:07 -08:00
Anthony Romano ed29bc3221 integration: add key usage to server.crt
curl handshake was failing; related: #209
2016-02-09 15:34:53 -08:00
Gyu-Ho Lee a8e72b6285 proxy: prints out when endpoints are found 2016-02-01 13:08:21 -08:00