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
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
c36ea3fdcf
migrate auto tests to common #3
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-02-15 11:08:01 -08: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
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
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
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
fa9ee5cce9
tests: TestRunner.NewCluster accepts options
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-10-31 15:26:08 +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
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
72bec6fbc2
tests: Add context to common client interface
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-08-26 07:12:45 +02: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