Skip to content

Commit

Permalink
skipped static credentials test for YDB version < 24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Nov 8, 2024
1 parent a8c645f commit fa858a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/ydb-platform/ydb-go-sdk/v3"
"github.com/ydb-platform/ydb-go-sdk/v3/config"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/meta"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/version"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
"github.com/ydb-platform/ydb-go-sdk/v3/log"
"github.com/ydb-platform/ydb-go-sdk/v3/retry"
Expand Down Expand Up @@ -167,6 +168,9 @@ func TestDriver(sourceTest *testing.T) {
}
}()
t.RunSynced("StaticCredentials", func(t *xtest.SyncedTest) {
if version.Lt(os.Getenv("YDB_VERSION"), "24.1") {
t.Skip("read rows not allowed in YDB version '" + os.Getenv("YDB_VERSION") + "'")
}
t.Run("CreateUser", func(t *testing.T) {
db, err := ydb.Open(ctx,
os.Getenv("YDB_CONNECTION_STRING"),
Expand Down

0 comments on commit fa858a8

Please sign in to comment.