Skip to content

Commit

Permalink
Skip a few unsupported tests in the DBAAS environment
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Jul 20, 2024
1 parent a9275ed commit 0246829
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,14 @@ var _ = gg.Describe("Expression Filters", func() {
var _ = gg.Context("Record Ops", func() {

gg.It("ExpRecordSize must work", func() {
if *dbaas {
gg.Skip("Not supported in DBAAS environment")
}

if serverIsOlderThan("7") {
return
gg.Skip("Not supported servers before v7")
}

// storage-engine could be memory for which deviceSize() returns zero.
// This just tests that the expression was sent correctly
// because all device sizes are effectively allowed.
Expand Down
6 changes: 6 additions & 0 deletions load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ func init() {

// ALL tests are isolated by SetName and Key, which are 50 random characters
var _ = gg.Describe("Aerospike load tests", func() {
gg.BeforeEach(func() {
if *dbaas {
gg.Skip("Not supported in DBAAS environment")
}
})

gg.Describe("Single long random string test", func() {
var ns = *namespace
var set = "load"
Expand Down
6 changes: 6 additions & 0 deletions random_operation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ const RANDOM_OPS_RUNS = 1000
// ALL tests are isolated by SetName and Key, which are 50 random characters
var _ = gg.Describe("Aerospike", func() {

gg.BeforeEach(func() {
if *dbaas {
gg.Skip("Not supported in DBAAS environment")
}
})

gg.Describe("Random Data Operations", func() {
// connection data
var err error
Expand Down

0 comments on commit 0246829

Please sign in to comment.