Skip to content

Commit

Permalink
bounce s3handler version
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Sep 20, 2020
1 parent d0bb04e commit ef21e30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "s3rs"
version = "0.4.1"
version = "0.4.2"
authors = ["Antonio Yang <[email protected]>"]
description = "A s3 cli client with multi configs with diffent provider"
keywords = ["S3", "Amazon", "CEPH", "AWS"]
Expand Down Expand Up @@ -36,7 +36,7 @@ serde_json = "1.0"
regex = "0.2"
quick-xml = "0.12"
colored = "1.6"
s3handler = "0.5.1"
s3handler = "0.5.3"
clap = "2.33.0"
hex = "0.4.2"
blake2-rfc = "0.2.18"
Expand Down
2 changes: 1 addition & 1 deletion test_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set bucket [lindex $argv 1]
set prompt ")>"; # this my shell prompt, change to yours if you use this script
set timeout 120

spawn dd if=/dev/zero bs=1024 count=7000 of=/tmp/7M
spawn dd if=/dev/urandom bs=1024 count=7000 of=/tmp/7M
spawn cargo build

expect $prompt
Expand Down
13 changes: 7 additions & 6 deletions test_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
set item [lindex $argv 0]
set bucket [lindex $argv 1]
set prompt "s3rs.*>";
set timeout 120
set timeout 180

spawn dd if=/dev/zero bs=1024 count=7000 of=/tmp/7M
spawn rm -f /tmp/test
spawn rm -f /tmp/test-orig
spawn dd if=/dev/urandom bs=1024 count=11264 of=/tmp/test-orig
spawn cargo run

expect "Selection:"
Expand Down Expand Up @@ -68,16 +70,15 @@ expect -re $prompt
send "log info\r"

expect -re $prompt
send "put /tmp/7M s3://$bucket\r"
send "put /tmp/test-orig s3://$bucket\r"

expect -re $prompt
send "get s3://$bucket/7M /tmp/7\r"
send "get s3://$bucket/test-orig /tmp/test\r"

expect -re $prompt
send "exit\r"

expect "cya~"
spawn md5sum /tmp/7M /tmp/7
spawn md5sum /tmp/test-orig /tmp/test

interact

0 comments on commit ef21e30

Please sign in to comment.