mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
Merge pull request #242 from rustfs/dev_issue_233
This commit is contained in:
@@ -131,9 +131,9 @@ impl<'de> Deserialize<'de> for Functions {
|
||||
}
|
||||
}
|
||||
|
||||
if inner_data.is_empty() {
|
||||
/* if inner_data.is_empty() {
|
||||
return Err(Error::custom("has no condition element"));
|
||||
}
|
||||
} */
|
||||
|
||||
Ok(inner_data)
|
||||
}
|
||||
@@ -180,7 +180,7 @@ mod tests {
|
||||
"s3:x-amz-server-side-encryption-customer-algorithm": "true"
|
||||
}
|
||||
}"# => false; "1")]
|
||||
#[test_case(r#"{}"# => false; "2")]
|
||||
#[test_case(r#"{}"# => true; "2")]
|
||||
#[test_case(
|
||||
r#"{
|
||||
"StringLike": {
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
rem filepath: run.bat
|
||||
|
||||
if not defined SKIP_BUILD (
|
||||
cargo build -p rustfs --bins
|
||||
)
|
||||
|
||||
set current_dir=%cd%
|
||||
|
||||
if not exist .\target\volume\test mkdir .\target\volume\test
|
||||
|
||||
if not defined RUST_LOG (
|
||||
set RUST_BACKTRACE=1
|
||||
set RUST_LOG=rustfs=debug,ecstore=debug,s3s=debug,iam=debug
|
||||
)
|
||||
|
||||
rem set RUSTFS_ERASURE_SET_DRIVE_COUNT=5
|
||||
|
||||
rem set RUSTFS_STORAGE_CLASS_INLINE_BLOCK=512 KB
|
||||
|
||||
rem set RUSTFS_VOLUMES=.\target\volume\test{0...4}
|
||||
set RUSTFS_VOLUMES=.\target\volume\test
|
||||
set RUSTFS_ADDRESS=0.0.0.0:9000
|
||||
set RUSTFS_CONSOLE_ENABLE=true
|
||||
set RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9002
|
||||
rem set RUSTFS_SERVER_DOMAINS=localhost:9000
|
||||
|
||||
if not "%~1"=="" (
|
||||
set RUSTFS_VOLUMES=%~1
|
||||
)
|
||||
|
||||
cargo run --bin rustfs
|
||||
Reference in New Issue
Block a user