2abdba6f81
Merge pull request #18860 from mmorel-35/testifier/tests/common
...
fix: use testify instead of t.Fatal in tests/common package (part 2)
2025-02-03 14:32:44 +00:00
bc4669c90d
wait for the member to get started
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-01-18 18:50:47 +00:00
44073ed85d
fix: use testify instead of t.Fatal in tests/common package (part 2)
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-12-21 16:51:26 +01:00
99be181902
Update TestMemberAdd's context timeout by adding 5 more seconds
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-12-09 11:12:03 +00:00
75cd1369a5
fix: enable gofumpt instead of gofmt linter in tests
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-11-28 21:08:42 +01:00
22ce068164
Merge pull request #18827 from mmorel-35/testifylint/go-require
...
fix: enable go-require rule from testifylint
2024-11-06 10:28:23 +00:00
7e7b7d5fa2
fix: enable go-require rule from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-11-03 22:55:30 +01:00
36a5e40fba
fix: use require instead of t.Fatal(err) in tests/common package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-11-03 09:32:58 +01:00
4da20aa06c
fix: use require.NoError instead of t.Fatal(err) in tests package (part 1)
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-24 09:47:52 +00:00
ff4a8df3aa
fix: enable formatter rule from testifylint
...
Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch >
2024-10-17 14:10:35 +02:00
33d7f2d53e
fix: enable gofmt and whitespace linters
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-11 07:03:18 +02:00
e06fb81713
fix: enable empty and len rules from testifylint
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-10 11:07:21 +00:00
83f75e1bf3
fix(tests/common): increase token ttl to fix flaky TestAuthLeaseTimeToLive test
...
Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch >
2024-10-01 10:59:25 +02:00
d31caaec4a
Merge pull request #17793 from mneverov/fix-quorum-check
...
Fix remove member failed.
2024-04-30 19:52:14 +01:00
7300abc552
tests/common: address var-naming lint warnings
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2024-04-23 20:09:06 -07:00
6b0b4ce2b3
Increase test timeout (twice of sleep interval).
...
Signed-off-by: Max Neverov <neverov.max@gmail.com >
2024-04-18 14:47:11 +02:00
3b16aae947
Fix remove member failed.
...
Signed-off-by: Max Neverov <neverov.max@gmail.com >
2024-04-17 07:55:24 +02:00
842a0f3a35
tests: fix some typos in comments
...
Signed-off-by: coderwander <770732124@qq.com >
2024-04-16 13:59:41 +08:00
fbda591866
fix some typos
...
Signed-off-by: thirdkeyword <fliterdashen@gmail.com >
2024-03-25 10:34:44 +08:00
aeecfa00b4
tests/common: address golangci var-naming issues
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2024-03-20 22:24:52 -07:00
aea1cd0077
feat: enable unparam lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-10-17 21:24:13 +08:00
07effc4d0a
*: fix revive linter
...
Remove old revive_pass in the bash scripts and migirate the revive.toml
into golangci linter_settings.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-24 14:21:11 +08:00
aa97484166
*: enable goimports in verify-lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-21 21:14:09 +08:00
df86cadd8b
*: fix ineffassign lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-19 22:19:19 +08:00
5e3910d96c
*: fix govet-shadow lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-19 20:24:01 +08:00
1b87ec499e
test: de-flake test case TestMemberList
...
get memberlist immediately before each time checking the members.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-09-06 08:24:41 +01:00
befb283cca
tests: deflake TestKVDelete/ClientAutoTLS
...
For the sub test TestKVDelete/ClientAutoTLS, the timeout might be caused
by IO or task scheduled. It's really hard to reproduce this case. And
we don't add `VERBOSE=1` for e2e test, the pipeline doesn't show the
`EXPECT_DEBUG` log in time. It's also hard to debug when flaky case
show. So, this patch will enable `VERBOSE=1` to get timestamp in time.
And the one operation `del a c -w json` will be performed after two seconds
delay, we can increase the timeout from 15s to 30s just in case that the
put or del operations take more time in unstable env.
```
Warning: Keys between "a" and "c" will be deleted. Please interrupt the
command within next 2 seconds to cancel.
```
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-05-19 18:22:18 +08:00
c846b087db
migrate e2e auth tests to common #8
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-05-12 22:51:47 -07:00
caed563e08
fix flaking auth member remove test
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-04-03 17:41:08 -07:00
9a2553fe2f
migrate auth tests to common #7
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-03-27 19:30:41 -07:00
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