Commit Graph

198 Commits (894751ef44628cbf5c85f16ba07b0b683793ea35)

Author SHA1 Message Date
Gyu-Ho Lee f63e6875bd e2e: test 'physical' flag in compact cmd 2016-06-27 12:07:49 -07:00
Gyu-Ho Lee f9d250ad1b e2e: update flag to 'peer-urls' 2016-06-23 09:53:30 -07:00
Hitoshi Mitake 4106e56d91 e2e: check role revoking during operations 2016-06-21 15:52:36 +09:00
Hitoshi Mitake 68bcbdc84e e2e: check user deletion during operations 2016-06-21 15:03:04 +09:00
Hitoshi Mitake 6fe4d9d30a e2e: check runtime permission changing
This commit adds extends the test for checking runtime permission
grant/revoke.
2016-06-21 11:55:09 +09:00
Gyu-Ho Lee b4f0a8853b e2e: grpc-gateway cURL tests 2016-06-20 14:29:10 -07:00
Ajit Yagaty ad5d55dd4c v3api: Add a flag to RangeRequest to return only the keys.
Currently the user can't list only the keys in a prefix search. In
order to support such operations the filtering will be done on the
server side to reduce the encoding and network transfer costs.
2016-06-19 14:18:39 -07:00
Anthony Romano d78ef8bc72 e2e: don't Put() after watchTest finishes
Fixes #5598
2016-06-13 16:55:02 -07:00
Anthony Romano 1e22137a9a e2e: test auth is respected for Puts 2016-06-10 11:43:06 -07:00
Xiang Li fb0df211f0 Merge pull request #5586 from xiang90/root
auth: add root user and root role
2016-06-09 00:23:45 -07:00
Xiang Li da2f2a5189 auth: add root user and root role 2016-06-08 19:55:08 -07:00
Gyu-Ho Lee bd5e1ea1c0 e2e: fix race in ranging test tables
Fix https://github.com/coreos/etcd/issues/5598.

race conditions were detected in iterating the test table
because the go func closure doesn't receive the 'puts' index
in the argument. This can cause the test to run wrong put
operations.
2016-06-08 13:44:05 -07:00
James Shubin 0048782d97 e2e: tests: fix small typo
Found when trying to get the e2e tests to run on Fedora which they
don't because of https://github.com/kr/pty/issues/21
2016-06-08 01:14:11 -04:00
Gyu-Ho Lee 7eaf73d273 e2e: test watch command with 2 args 2016-06-07 16:52:19 -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 23b14a8c8d e2e: add migrate cmd test 2016-05-23 14:27:51 -07:00
Gyu-Ho Lee 96d06d4f2c e2e: add Restart, Start, grpcEndpoints methods 2016-05-23 14:27:48 -07:00
Gyu-Ho Lee f2b2e0761a e2e: wait for member publishing after backup 2016-05-17 21:39:04 -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
Anthony Romano 798718c49b etcdctl: verify snapshot hash on restore
Fixes #4097
2016-05-16 12:08:08 -07:00
Gyu-Ho Lee 002090daec e2e: test empty key for get command 2016-05-13 11:30:36 -07:00
Gyu-Ho Lee ef44f71da9 *: update LICENSE header 2016-05-12 20:51:48 -07:00
Ajit Yagaty adc981c53d auth: Adding support for "auth disable" command.
Added support for the auth disable command in the server, added the
etcdctl command and a respective testcase.
2016-05-07 19:21:49 -07:00
Xiang Li c5bf6a9d9e e2e: add test for auto client tls 2016-05-03 08:35:02 -07:00
Gyu-Ho Lee bba08f6f79 e2e: add tests for issue 5182
For https://github.com/coreos/etcd/issues/5182.
2016-04-26 15:37:19 -07:00
Anthony Romano b7ac758969 *: rename storage package to mvcc 2016-04-25 15:25:51 -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 b37a0ad9e7 Merge pull request #5137 from gyuho/member_add_test
e2e: add member add/update test
2016-04-20 10:38:43 -07:00
Gyu-Ho Lee 0893dbf7c1 e2e: add member add/update test 2016-04-20 10:05:55 -07:00
Anthony Romano d2a58cbb0a etcdctl: print full json response for Get
Otherwise parsing get/txn output with json is somewhat complicated
because in some cases there's a json message and sometimes not.
Likewise, a get on an absent key has to return the current revision for
some algorithms to work.
2016-04-20 09:56:32 -07:00
Gyu-Ho Lee a2afb513dd *: add snapshot e2e test 2016-04-16 13:27:10 -07:00
Gyu-Ho Lee 59a88d1cf6 e2e: add member remove test 2016-04-15 14:43:32 -07:00
Gyu-Ho Lee 6bbdebb281 Merge pull request #5076 from gyuho/more_e2e
*: add, clean up e2e tests
2016-04-14 11:59:13 -07:00
Gyu-Ho Lee fefb58dc90 e2e: clean up, add more tests 2016-04-14 11:42:57 -07:00
Ajit Yagaty 4495559ad6 e2e: Test case for the etcdctlv3 'role grant' command.
Adding a test case to test the 'role grant' sub-command.
2016-04-14 11:31:07 -07:00
Ajit Yagaty 3b7c8d752c e2e: Test case for the etcdctlv3 role command.
New test cases have been added to test the 'role' and 'user'
sub-commands of etcdctlv3 utility.
2016-04-14 01:54:22 -07:00
Gyu-Ho Lee 3f0863a1e9 e2e: compact test 2016-04-13 12:07:48 -07:00
Gyu-Ho Lee 60548b85c4 *: add rev flag to get command 2016-04-13 11:32:29 -07:00
Gyu-Ho Lee 1224044553 e2e: add elect command test 2016-04-13 10:00:56 -07:00
Anthony Romano 8763bd1e97 e2e: etcdctlv3 lock test 2016-04-13 09:26:16 -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
Anthony Romano 209f573083 e2e: cleanup error and prefix arg handling for ctlv3 tests 2016-04-12 23:48:13 -07:00
Xiang Li 2985396768 Merge pull request #5053 from xiang90/ctl_i
etcdctl: move endpoint-heath and status into endpoint command
2016-04-12 16:50:03 -07:00
Xiang Li ae9b251d99 etcdctl: move endpoint-heath and status into endpoint command 2016-04-12 16:30:26 -07:00
Anthony Romano 0ca949ce90 Merge pull request #5051 from heyitsanthony/fix-user-list
etcdctl: don't panic on ListUser with roles
2016-04-12 14:24:08 -07:00
Anthony Romano f13e558ab4 e2e: test etcdtl user list on root user 2016-04-12 11:15:06 -07:00
Anthony Romano a0d653b630 e2e: test etcdctl v2 double user grant
Crashes in 2.3.1
2016-04-12 10:49:05 -07:00
Anthony Romano e5a2bd58ec etcdctl: respect --write-out
Support got clobbered about a month ago.
2016-04-11 16:01:38 -07:00
Ajit Yagaty 603c14db9d e2e: Test cases for the etcdctlv3 user commands.
New test cases have been added to test the "user" sub-commands of
the etcdctlv3 utility.
2016-04-10 17:46:04 -07:00
Gyu-Ho Lee d78345244b *: log, expect by capability check 2016-04-07 17:18:51 -07:00
Anthony Romano c91c7ca3bf Merge pull request #4961 from heyitsanthony/rename-lease-create
*: rename lease Create to Grant
2016-04-07 14:51:22 -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
Anthony Romano dc17eaace7 *: rename Lease Create to Grant
Creating a lease through the client API interface union looked like
"c.Create(...)"-- the method name wasn't very descriptive.
2016-04-07 12:28:14 -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
Gyu-Ho Lee e3599e4145 e2e: clean up to test tables, endpoint-health test 2016-04-05 13:33:37 -07:00
Gyu-Ho Lee 3e39f36b34 e2e: get with sort order, target 2016-04-04 23:10:03 -07:00
Gyu-Ho Lee 9de5b8db80 e2e: watch by prefix 2016-04-04 14:52:54 -07:00
Hitoshi Mitake 4ff81678ac e2e: import fmt in etcdctlv3_test.go 2016-04-04 17:00:33 +09:00
Gyu-Ho Lee e8a4ed01e2 Merge pull request #4949 from gyuho/delete
*: add del by prefix with e2e tests
2016-04-03 12:09:16 -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 9afae9e2c1 *: add del by prefix with e2e tests 2016-04-03 11:41:49 -07:00
Gyu-Ho Lee c280871714 e2e: etcdctlv3 version, txn basic tests 2016-04-03 10:57:31 -07:00
Gyu-Ho Lee b0cc0e443c *: clean up if, bool comparison 2016-04-02 12:55:11 -07:00
Gyu-Ho Lee dc0061e4db e2e: add Get tests 2016-04-01 22:45:27 -07:00
Gyu-Ho Lee b98f67095e e2e: add basic v3 watch test 2016-03-31 18:04:14 -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 87d9f06a45 *: combine etcdctl and etcdctlv3 2016-03-28 11:28:05 -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 a10662210a e2e: etcdctlv3 with serializable read 2016-03-22 16:52:33 -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 9809da95da client: correctly unmarshal roles in ListRoles 2016-03-05 19:42:58 -08:00
Anthony Romano 2a0d64bb4a client: correctly unmarshal users in ListUsers 2016-03-05 19:42:58 -08:00
Gyu-Ho Lee 07030d59dd e2e: use endpoints flag 2016-03-05 12:28:31 -08:00
Anthony Romano 0926a91179 e2e: test granting roles to users 2016-03-04 16:09:01 -08:00
Gyu-Ho Lee 7cae2ae2a0 e2e: compare output in Go string literal
I manually print out the command outputs when the issue
was reproduced, and checked they are matching when compared as
Go string literals (UTF-8), but not when compared with regex.

Fixes https://github.com/coreos/etcd/issues/4480.
2016-02-16 13:57:49 -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
Anthony Romano 6bbb916b47 e2e: fix race in etcdctl watch tests 2016-02-05 12:27:05 -08:00
Gyu-Ho Lee a8e72b6285 proxy: prints out when endpoints are found 2016-02-01 13:08:21 -08:00
Gyu-Ho Lee 2e051c1c61 e2e: check regexp.MatchReader return, curl SSL issue
1. proc.ExpectRegex returns the result of regexp.MatchReader,
which does not return error even if there is no match of regex.
This fixes it by checking the boolean value and if the boolean
value is false, it returns error.

2. Adds more tests and finishes coreos#4259.

3. When we do the regex match correctly, curl request through SSL
returns error. For the purpose of debugging, I changed it to log
without failing the tests. etcdctl with SSL works fine.

4. Add // TODO: 'watch' sometimes times out in Semaphore CI environment but
works fine in every other environments.

5. increase test time
2016-02-01 12:20:53 -08:00
Gyu-Ho Lee bde5f7f20f e2e: add more etcdctl tests 2016-01-29 16:20:12 -08:00
Gyu-Ho Lee 713b56c860 e2e: increase watch timeout 2016-01-28 23:24:04 -08:00
Gyu-Ho Lee 6491bae27f e2e: etcdctl test for proxy no-sync
For https://github.com/coreos/etcd/issues/3894.
2016-01-28 16:01:29 -08:00
Gyu-Ho Lee 96d2ee20e3 *: detect leaky goroutines, fix leaks
gexpect.Interact leaks. This adds ReadLine method to wait for the leaky
goroutine to accept an EOF.

Fixes https://github.com/coreos/etcd/issues/4258.

Reference: https://github.com/coreos/etcd/pull/4261#issuecomment-174198945.
2016-01-23 13:52:41 -08:00
Anthony Romano 6de07cf9ea e2e: etcd end-to-end tests
Uses gexpect to test the etcd binary directly. Tests #4135, #4171
2016-01-12 21:27:59 -08:00