Commit Graph

198 Commits (894751ef44628cbf5c85f16ba07b0b683793ea35)

Author SHA1 Message Date
fanmin shi c2fd42b556 etcdserver, clientv3: add "!=" to txn
adding != to compare is a requested functionality from a etcd user

FIX #6719
2016-11-09 14:28:36 -08:00
Xiang Li 2ba42990ec ctlv3: fix migration 2016-11-02 20:00:07 -07:00
Gyu-Ho Lee b64de4707d Merge pull request #6724 from johnbazan/ctlv3_add_user_with_password_inline
etcdctl: allow to add a user within one command line
2016-10-31 14:31:09 -07:00
Jonathan Bazan d51a7dba43 etcdctl: Adding e2e tests for userAddTest 2016-10-31 18:14:29 -03:00
Gyu-Ho Lee 9bfbc12d7d e2e: compact with latest rev in alarm test
Fix https://github.com/coreos/etcd/issues/6677.
2016-10-20 11:06:30 -07:00
Gyu-Ho Lee 3a6d4b7f12 e2e: test sort ASCEND when sort target is missing 2016-10-18 16:29:22 -07:00
Gyu-Ho Lee 75a65e1a70 e2e: add test cases for del all keys 2016-10-17 09:34:21 -07:00
Gyu-Ho Lee 8081254498 e2e: add tests with environment vars for flags 2016-10-14 11:58:56 -07:00
Xiang Li d1660b5ba3 Merge pull request #6619 from mitake/health-key
etcdctl, e2e: add --check-key option to endpoint health
2016-10-13 20:27:37 -07:00
Hitoshi Mitake d585b43abe etcdctl, e2e: add --check-key option to endpoint health
This commit adds a new option --check-key to endpoint health command
for health checking with a custom key. It is mainly for avoiding
permission problem.
2016-10-14 11:39:46 +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
Hitoshi Mitake 644ec0ddef etcdctl, e2e: parse auth related options in endpoint health command
Partially fixes https://github.com/coreos/etcd/issues/6611
2016-10-09 20:34:09 +09:00
Xiang Li f3cdfcdcf4 Merge pull request #6486 from glevand/for-merge-arm64
Get tests working on ARM64
2016-10-06 17:53:10 -07:00
Anthony Romano e28706d9e2 e2e: print correct timeout for etcdctl tests 2016-10-06 09:18:41 -07:00
Geoff Levand de8adc9e03 e2e/ctl_v3_alarm_test: Fix quota test
Rework the over quota test to be more a realistic test.  Take into
consideration that the system page size will be different across
platforms.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-10-05 16:41:06 -07:00
Geoff Levand 8c60a532a6 e2e/ctl_v3_alarm_test: Use fixed small buf size
We just need a small chunk of data to test put, so to be
consistent across platforms use a fixed size of 64 bytes.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-10-05 16:41:06 -07:00
Gyu-Ho Lee 0dc14d1771 e2e: test 'https' scheme endpoints 2016-10-03 13:04:58 -07:00
Gyu-Ho Lee 5c51c600aa e2e: skip when 'etcdProcess' is nil 2016-10-01 00:45:28 -07:00
sharat 35ff70656b etcdctlv3: del command from-key feature added 2016-09-22 16:55:36 +05:30
sharat 592538986d e2e: refactored ctlv3_make_mirror_test 2016-09-21 22:07:03 +05:30
sharat 3492753edf e2e: refactored ctlv3_make_mirror_test 2016-09-21 20:01:24 +05:30
sharat 409fc439d1 etcdctlv3: test case: make-mirror no dest prefix 2016-09-21 15:12:36 +05:30
sharat e5ff5d92e6 etcdctlv3: test case: make-mirror modify dest prefix 2016-09-21 05:40:52 +05:30
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
Hitoshi Mitake 4e2b09a7ca etcdctl: an option for granting permission with key prefix
This commit adds a new option --prefix to "role grant-permission"
command. If the option is passed, the command interprets the key as a
prefix of range permission.

Example of usage:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant-permission --prefix r1 readwrite /dir/
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
        [/dir/, /dir0)
        [k1, k5)
KV Write:
        [/dir/, /dir0)
        [k1, k5)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p put /dir/key val
OK
2016-09-14 12:54:14 +09:00
Gyu-Ho Lee b7dc6cc604 e2e: test 'lease timetolive' 2016-09-09 08:22:41 +09:00
Hitoshi Mitake bc5d7bbe03 auth, e2e, clientv3: the root role should be granted access to every key
This commit changes the semantics of the root role. The role should be
able to access to every key.

Partially fixes https://github.com/coreos/etcd/issues/6355
2016-09-06 16:10:28 +09:00
Anthony Romano 666e7bd120 e2e: add quoted key/value to txn test 2016-09-01 19:39:23 -07:00
Gyu-Ho Lee a6d22b96c3 Merge pull request #6317 from gyuho/release-test
e2e: add 'TestReleaseUpgradeWithRestart'
2016-08-30 21:22:20 -07:00
Gyu-Ho Lee a1598d767b e2e: add 'TestReleaseUpgradeWithRestart' 2016-08-30 21:01:10 -07:00
Gyu-Ho Lee c8ad147c0a e2e: remove stripSchema 2016-08-30 20:52:33 -07:00
Gyu-Ho Lee 1c59708c51 e2e: test 'print-value-only' flag 2016-08-29 12:09:16 -07:00
Xiang Li 1d58c7d3b2 e2e: remove server testing in etcdctl test 2016-08-22 15:34:50 -07:00
Hitoshi Mitake 3d5d3b90e9 e2e: a test case for txn and permission
This commit adds a new test case for checking the permission mechanism
can work well in txn requests.
2016-08-22 12:06:19 +09:00
Yiqiao Pu d0d8e49e20 e2e: Update binary path with binDir
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
2016-08-15 17:22:42 +08: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 a289bf58e6 e2e: use a single member cluster in TestCtlV3Migrate
Occasionally migrate would fail because a minority node would be missing
v2 keys. Instead, just use a single member cluster.

Fixes #5992
2016-07-20 12:10:09 -07:00
Anthony Romano 884452c403 e2e: run e2e tests on unsupported architectures 2016-07-16 10:30:19 -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
Hitoshi Mitake 745e1e2cf9 e2e: enhance the test case of auth disabling 2016-06-29 11:31:42 +09:00
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