mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 21:26:28 +00:00
test(e2e): enforce awscurl smoke prerequisite
This commit is contained in:
@@ -678,6 +678,19 @@ jobs:
|
|||||||
cache-save-if: 'false'
|
cache-save-if: 'false'
|
||||||
install-build-packaging-tools: '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
|
# Download after the cache restore so the freshly built binary from the
|
||||||
# build job always wins over anything restored into target/debug.
|
# build job always wins over anything restored into target/debug.
|
||||||
- name: Download debug binary
|
- 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>> {
|
async fn test_bucket_policy_authenticated_user() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||||
init_logging();
|
init_logging();
|
||||||
if !crate::common::awscurl_available() {
|
if !crate::common::awscurl_available() {
|
||||||
info!("Skipping test_bucket_policy_authenticated_user because awscurl is not available");
|
return Err("awscurl is required for test_bucket_policy_authenticated_user".into());
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
info!("Starting test_bucket_policy_authenticated_user...");
|
info!("Starting test_bucket_policy_authenticated_user...");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user