test(e2e): enforce awscurl smoke prerequisite

This commit is contained in:
overtrue
2026-08-23 01:38:00 +08:00
parent 95cc94f27c
commit 9559be02bc
2 changed files with 14 additions and 2 deletions
+13
View File
@@ -678,6 +678,19 @@ jobs:
cache-save-if: 'false'
install-build-packaging-tools: 'false'
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.12"
- name: Install awscurl
run: |
python3 -m pip install --user --upgrade pip "awscurl==0.44"
echo "AWSCURL_PATH=$HOME/.local/bin/awscurl" >> "$GITHUB_ENV"
- name: Verify awscurl
run: test -x "$AWSCURL_PATH"
# Download after the cache restore so the freshly built binary from the
# build job always wins over anything restored into target/debug.
- name: Download debug binary
@@ -53,8 +53,7 @@ fn create_user_client(env: &RustFSTestEnvironment, access_key: &str, secret_key:
async fn test_bucket_policy_authenticated_user() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
init_logging();
if !crate::common::awscurl_available() {
info!("Skipping test_bucket_policy_authenticated_user because awscurl is not available");
return Ok(());
return Err("awscurl is required for test_bucket_policy_authenticated_user".into());
}
info!("Starting test_bucket_policy_authenticated_user...");