d7f992c351
enable pre-vote by default and add retry on member_test
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-03-17 15:15:13 -07:00
c002e096b5
migration auth tests to common #5
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-03-03 12:26:36 -08:00
d798816baf
migrate auth tests to common #6
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-02-28 10:32:29 -08:00
da4bf0f76f
Merge pull request #15261 from ahrtr/memberlist_20230208
...
clientv3: support serializable `MemberList` operation
2023-02-28 06:26:38 +08:00
1f0d361848
clientv3: support serializable MemberList operation
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-25 07:23:39 +08:00
b93745a862
migrate to auth test #4
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-02-23 10:46:31 -08:00
c36ea3fdcf
migrate auto tests to common #3
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-02-15 11:08:01 -08:00
e73f55d4e9
Merge pull request #15028 from chaochn47/auth_test_split
...
tests/common: migrate auth tests #2
2023-01-01 18:58:39 +01:00
9abc895122
Goimports: Apply automated fixing to test files as well.
...
Signed-off-by: Piotr Tabor <ptab@google.com >
2022-12-29 13:04:45 +01:00
4d0b91947e
chore: delete // +build buildtag by go fix
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-12-29 14:17:05 +08:00
a7da508ff6
tests/common: migrate auth tests #1
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2022-12-19 22:23:11 -08:00
008df94901
tests/common: migrate auth tests #1
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2022-12-15 10:49:20 -08:00
cd15507c65
test: enhance case TestEndpointHashKV to check both hash and hashRevision
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-25 18:49:16 +08:00
2feec4fe68
comments: fix comments as per goword in go test files
...
Comments fixed as per goword in go test files that shell
function go_srcs_in_module lists as per changes on #14827
Helps in #14827
Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io >
2022-11-23 23:05:42 +05:30
f656fa0f49
add missing copyright headers
...
Signed-off-by: Andrew Sims <andrew.cameron.sims@gmail.com >
2022-11-23 19:13:43 +11:00
5b163aa507
Expect exit code enhancement
...
ExpectProcess and ExpectFunc now take the exit code of the process into
account, not just the matching of the tty output.
This also refactors the many tests that were previously succeeding on
matching an output from a failing cmd execution.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com >
2022-11-14 11:19:41 +01:00
86e71f026e
test: update the definition of testRunner and clusterTestCases
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-07 10:18:51 +08:00
fc23d0e83a
test: add ClusterContext into the common ClusterConfig
...
ClusterContext is used by "e2e" or "integration" to extend the
ClusterConfig. The common test cases shouldn't care about what
data is encoded or included; instead "e2e" or "integration"
framework should decode or parse it separately.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-07 10:05:45 +08:00
71b40b3abf
tests: Extend common test to run previous release
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-07 06:51:59 +08:00
c00ede393f
test: fix pipeline errors due to PRs conflict
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-06 06:28:51 +08:00
49db50c117
Merge pull request #14663 from ahrtr/auth_20221031
...
auth: check permission when performing maintainenence operations if auth is enabled
2022-11-05 23:13:29 +09:00
dc0273b049
test: refactor the struct to make it clearer
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-04 19:28:32 +08:00
f782891246
test: added auth test on maintenance API
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-03 04:39:42 +08:00
1791ab5754
test: add common functions for auth test
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-03 04:39:42 +08:00
fa9ee5cce9
tests: TestRunner.NewCluster accepts options
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-10-31 15:26:08 +08:00
e28b66f751
tests: add a ClusterOption interface for ClusterSize in config.ClusterConfig
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-10-26 23:41:09 +08:00
5550041633
Merge pull request #14629 from clarkfw/fix-anti-pattern-naming
...
test: fix anti-pattern naming problem in config.ClusterConfig
2022-10-26 20:01:43 +08:00
08284c56e0
test: fix anti-pattern naming problem in config.ClusterConfig
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-10-26 15:47:19 +08:00
42cfb74b4c
test: define a default WithAuth to resolve error Unresolved reference 'WithAuth' from IDE
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-10-26 14:30:47 +08:00
3ee2f5711e
test: add common function "WithAuth"
...
We defines two common `WithAuth` functions for e2e and integration
test respectively. They are calling `integration.WithAuth` and
`e2e.WithAuth` respectively.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-10-25 02:41:49 +08:00
4e0ccc69c9
test: refactor the client interface
...
It doesn't make sense to always pass a AuthConfig parameter for
test cases which do not enable auth at all. So refactoring the
Client interface method so that it accepts a `ClientOption`
variadic parameter.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-10-24 19:04:34 +08:00
8d057ea2b8
common tests framework: cluster client creation fail with invalid auth
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2022-09-29 23:09:32 -07:00
159ed15afc
Merge pull request #14479 from demoManito/fix/declaring-empty-slice
...
etcd: modify declaring empty slices
2022-09-20 05:22:59 +08:00
d657f2f66b
Test: increase the TestKVDelete's timeout to 15s
...
Sometimes it just needs more time to execute the test case,
so increase the timeout from 10s to 15s.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-09-18 04:26:30 +08:00
72cf0cc04a
etcd: modify declaring empty slices
...
declare an empty slice to var s []int replace s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
Signed-off-by: demoManito <1430482733@qq.com >
2022-09-16 14:41:14 +08:00
6a5dd09fe6
tests: Migrate member remove tests to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-09-09 15:09:10 +08:00
f0c95cadea
Merge pull request #14281 from clarkfw/migrate-member-add-tests
...
tests: Migrate member add tests to common framework
2022-09-06 09:27:28 +02:00
fcc076fb78
tests: Migrate member add tests to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-09-06 11:02:54 +08:00
cc840336f0
move consistent_index forward when executing alarmList operation
...
The alarm list is the only exception that doesn't move consistent_index
forward. The reproduction steps are as simple as,
```
etcd --snapshot-count=5 &
for i in {1..6}; do etcdctl alarm list; done
kill -9 <etcd_pid>
etcd
```
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-09-05 10:05:55 +08:00
46fe4b8e1c
tests: Rename common client lease methods to match
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:47 +02:00
72bec6fbc2
tests: Add context to common client interface
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:45 +02:00
f6ed36372b
tests: Migrate watch test to common framework
...
Signed-off-by: nic-chen <chenjunxu6@gmail.com >
2022-08-22 21:55:57 +08:00
a5409c62e6
tests: add WaitLeader function to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-11 12:46:40 +08:00
7fa88fb8f7
tests: fix status responses size and nil
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-08-03 03:10:45 +08:00
13d20f8d28
tests: Migrate member list tests to common framework
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-07-26 23:28:19 +08:00
ee08770bfb
tests: Make common framework context aware
2022-05-16 14:35:44 +02:00
9beb29916e
tests: Extract cluster test cases
2022-05-13 14:41:53 +02:00
55f0c96fa0
tests: Migrate Txn tests to common functional test framework
2022-05-11 10:33:47 +05:30
e004c91d36
migrate e2e & integration role_test to common
2022-05-10 10:17:16 -07:00
00d6d40aea
Merge pull request #13940 from lavacat/leases-list-test
...
tests/common/lease: don't use revision to wait for leases
2022-04-29 10:12:18 +02:00