d05b8b7611
chore: use testify instead of testing in tests/integration
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-15 19:29:30 +01:00
d1adc37597
chore: use testify instead of testing in tests/integration
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-02-04 20:22:56 +01:00
91c07650ec
fix: use require instead of t.Fatal(err) in tests/integration package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-30 22:30:51 +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
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
a69829bae3
Address linter issues
...
Log:
integration/metrics_test.go:139:4: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
t.Fatalf(err.Error())
^
integration/clientv3/lease/lease_test.go:410:4: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
t.Fatalf(errMsg)
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com >
2024-08-29 22:16:48 +02:00
0232686cac
etcdserver: add server range duration metrics
...
Signed-off-by: Daniel Tripp <38776199+thedtripp@users.noreply.github.com >
Co-authored-by: Ravi Hari <RaviHari@users.noreply.github.com >
2024-05-18 19:01:09 +00:00
5e3910d96c
*: fix govet-shadow lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-19 20:24:01 +08:00
264fdbb6a1
test: Remove separation between V2 and V3 cluster in integration tests
2022-01-20 14:10:09 +01:00
ca9b720c1d
tests: Move integration setup to separa framework package
2021-10-20 10:34:35 +02:00
83a325ac46
server: Move all functions needed for storage bootstrap to storage package
...
This is prerequestite to move storage bootstrap, splitted to separate PR
to make it easier to review.
2021-08-03 13:09:15 +02:00
3bb7acc8cf
Migrate dependencies pkg/foo -> client/pkg/foo
2021-04-07 00:38:47 +02:00
b406647dd7
Fix/remove broken: TestMetricDbSizeDefragDebugging
2021-03-12 23:05:53 +01:00
fb1d48e98e
Integration tests: Use BeforeTest(t) instead of defer AfterTest().
...
Thanks to this change, a single method BeforeTest(t) can handle
before-test logic as well as registration of cleanup code
(t.Cleanup(func)).
2021-03-09 18:19:51 +01:00
aaf423e962
server: Update imports.
...
find -name '*.go' | xargs sed -i --follow-symlinks 's|etcd/v3/|etcd/server/v3/|g'
2020-10-26 13:02:32 +01:00
de55bb6331
pkg: Rename imports after making 'pkg' a module
...
find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
2020-10-13 00:09:27 +02:00
3153038ffb
tests/integration: Moving integration tests to tests/integration directory
...
git mv integration ./tests
git mv client/integration/* ./tests/integration/client
git mv clientv3/integration/* ./tests/integration/clientv3
git mv client/example_keys_test.go client/main_test.go tests/integration/client/examples
git mv clientv3/concurrency/*_test.go tests/integration/clientv3/concurrency
git mv etcdserver/api/v2store/store_v2v3_test.go etcdserver/api/v2v3/*_test.go tests/integration/v2store
git mv tests/integration/v2store/store_v2v3_test.go tests/integration/v2store/store_v2v3.go
git mv tests/integration/v2store/store_test.go tests/integration/v2store/store_v2v3_test.go
git mv etcdserver/api/v2store/store_test.go tests/integration/v2store
git mv etcdserver/api/v2store/store_v2_test.go tests/integration/v2store
git mv proxy/grpcproxy/*_test.go tests/integration/proxy/grpcproxy
git mv ./clientv3/snapshot/testdata ./clientv3/snapshot/*_test.go ./tests/integration/snapshot
2020-10-07 15:36:21 +02:00