Skip to content

Commit ea9e060

Browse files
update test
Co-authored-by: Thomas Chow <[email protected]>
1 parent ea79cd3 commit ea9e060

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cloud_gcp/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ scala_test_suite(
8787
srcs = glob(["src/test/**/*.scala"]),
8888
# defined in prelude_bazel file
8989
jvm_flags = _JVM_FLAGS_FOR_ACCESSING_BASE_JAVA_CLASSES,
90+
resources = glob(["src/main/resources/**"]),
9091
visibility = ["//visibility:public"],
9192
deps = shared_deps + test_deps + [":cloud_gcp_lib"],
9293
)

cloud_gcp/src/test/scala/ai/chronon/integrations/cloud_gcp/BigQueryCatalogTest.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import org.apache.spark.sql.internal.SQLConf
1313
import org.junit.Assert.{assertEquals, assertNotNull, assertTrue}
1414
import org.scalatest.flatspec.AnyFlatSpec
1515
import org.scalatestplus.mockito.MockitoSugar
16+
import com.google.cloud.spark.bigquery.BigQueryUtilScala
17+
1618

1719
import java.io.{ByteArrayInputStream, ByteArrayOutputStream}
1820
import scala.collection.JavaConverters._
@@ -109,6 +111,10 @@ class BigQueryCatalogTest extends AnyFlatSpec with MockitoSugar {
109111
println(nativePartitions)
110112
}
111113

114+
it should "connector.properties lists the correct scala and connector version" in {
115+
BigQueryUtilScala.validateScalaVersionCompatibility()
116+
}
117+
112118
it should "kryo serialization for ResolvingFileIO" in {
113119
val registrator = new ChrononKryoRegistrator()
114120
val kryo = new Kryo();

0 commit comments

Comments
 (0)