Skip to content

Commit b55b6e3

Browse files
authored
Merge pull request #572 from ydb-platform/slo-prepare
refactored integration tests + add slo workloads paths
2 parents 27a45b8 + d54c8e5 commit b55b6e3

20 files changed

+27
-25
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Checkout code
7171
uses: actions/checkout@v3
7272
- name: Integration test
73-
run: go test -race -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests
73+
run: go test -race -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests/integration
7474
- name: Upload Test secure connection coverage report to Codecov
7575
uses: codecov/codecov-action@v2
7676
with:
@@ -113,7 +113,7 @@ jobs:
113113
- name: Checkout code
114114
uses: actions/checkout@v3
115115
- name: Test insecure connection
116-
run: go test -race -coverpkg=./... -coverprofile integration-insecure.txt -covermode atomic ./tests
116+
run: go test -race -coverpkg=./... -coverprofile integration-insecure.txt -covermode atomic ./tests/integration
117117
- name: Upload Test insecure connection coverage report to Codecov
118118
uses: codecov/codecov-action@v2
119119
with:

tests/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/integration/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Package `integration`
2+
3+
Package `integration` contains only integration tests for `ydb-go-sdk`. All test files must have build tag
4+
```go
5+
//go:build !fast
6+
// +build !fast
7+
```
8+
for run this test files as integration tests int github action `integration`.

tests/connection_test.go renamed to tests/integration/connection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

tests/database_sql_regression_test.go renamed to tests/integration/database_sql_regression_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

tests/database_sql_test.go renamed to tests/integration/database_sql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"bytes"

tests/discovery_test.go renamed to tests/integration/discovery_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

tests/monitoring_test.go renamed to tests/integration/monitoring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

tests/ratelimiter_test.go renamed to tests/integration/ratelimiter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

tests/scripting_test.go renamed to tests/integration/scripting_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build !fast
22
// +build !fast
33

4-
package tests
4+
package integration
55

66
import (
77
"context"

0 commit comments

Comments
 (0)