Skip to content

Commit

Permalink
disabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaidioz committed Jun 10, 2024
1 parent 08a4bb8 commit 23c8a08
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,13 +1000,15 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT pg_typeof(NOW())""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionFailure(errors2) = compilerService.getProgramDescription(t.q, asJson())
errors2.map(_.message).contains("unsupported type: regtype")
}

test("""SELECT CAST(pg_typeof(NOW()) AS VARCHAR)""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(_) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1024,6 +1026,7 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT NOW()""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1039,6 +1042,7 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT TIMESTAMP WITH TIME ZONE '2001-01-01 12:13:14.567 UTC' AS t""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1055,6 +1059,7 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT TIMESTAMP WITHOUT TIME ZONE '2001-01-01 12:13:14.567' AS t""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1071,6 +1076,7 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT TIME WITH TIME ZONE '12:13:14.567 UTC' AS t""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1087,6 +1093,7 @@ class TestSqlCompilerServiceAirports
}

test("""SELECT TIME WITHOUT TIME ZONE '12:13:14.567' AS t""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand All @@ -1104,6 +1111,7 @@ class TestSqlCompilerServiceAirports

test("""-- @default t TIME WITHOUT TIME ZONE '12:13:14.567'
|SELECT :t AS t""".stripMargin) { t =>
assume(password != "")
val ValidateResponse(errors) = compilerService.validate(t.q, asJson())
assert(errors.isEmpty)
val GetProgramDescriptionSuccess(description) = compilerService.getProgramDescription(t.q, asJson())
Expand Down

0 comments on commit 23c8a08

Please sign in to comment.