This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 564ad8de feat(tests): Enable supabase integration tests (#2190)
564ad8de is described below
commit 564ad8de8fc8cc2c23d70e96078cfe54c23eccd2
Author: Xuanwo <[email protected]>
AuthorDate: Wed May 3 02:21:52 2023 +0800
feat(tests): Enable supabase integration tests (#2190)
* chore: Refactor behavior test
Signed-off-by: Xuanwo <[email protected]>
* We don't need cfg-if anymore
Signed-off-by: Xuanwo <[email protected]>
* feat(tests): Enable supabase integration tests
Signed-off-by: Xuanwo <[email protected]>
---------
Signed-off-by: Xuanwo <[email protected]>
---
.env.example | 5 +++++
core/tests/behavior/main.rs | 2 ++
2 files changed, 7 insertions(+)
diff --git a/.env.example b/.env.example
index 4d5e605c..893a4b93 100644
--- a/.env.example
+++ b/.env.example
@@ -87,6 +87,11 @@ OPENDAL_WEBHDFS_TEST=false
OPENDAL_WEBHDFS_ROOT=/tmp/opendal/
OPENDAL_WEBHDFS_ENDPOINT=http://127.0.0.1:9870
OPENDAL_WEBHDFS_DELEGATION=<delegation>
+# supbase
+OPENDAL_SUPABASE_TEST=false
+OPENDAL_SUPABASE_BUCKET=<bucket>
+OPENDAL_SUPABASE_ENDPOINT=<endpoint>
+OPENDAL_SUPABASE_KEY=<service_key>
# vercel artifacts
OPENDAL_VERCEL_ARTIFACTS_TEST=false
OPENDAL_VERCEL_ARTIFACTS_ACCESS_TOKEN=<token>
diff --git a/core/tests/behavior/main.rs b/core/tests/behavior/main.rs
index 7c6f2d8d..692ad5c7 100644
--- a/core/tests/behavior/main.rs
+++ b/core/tests/behavior/main.rs
@@ -131,6 +131,8 @@ behavior_tests!(Oss);
behavior_tests!(S3);
#[cfg(feature = "services-sftp")]
behavior_tests!(Sftp);
+#[cfg(feature = "services-supabase")]
+behavior_tests!(Supabase);
#[cfg(feature = "services-sled")]
behavior_tests!(Sled);
#[cfg(feature = "services-vercel-artifacts")]