Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aws-sdk-go presigned PUT test #222

Merged
merged 1 commit into from
Nov 17, 2017
Merged

Conversation

krisis
Copy link
Member

@krisis krisis commented Nov 16, 2017

  • Add aws-sdk-go to mint
  • Add presigned PUT test in aws-sdk-go
  • Remove presigned PUT test in aws-sdk-php since the SDK doesn't support
    'X-Amz-Content-Sha256' header with presigned requests

Fixes #216

Copy link
Contributor

@nitisht nitisht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition! Please add a README.md in run/core/aws-sdk-go as well.

// calculate the test case duration
duration := time.Since(startTime)
// log with the fields as per mint
fields := log.Fields{"name": "minio-go", "function": function, "args": args, "duration": duration.Nanoseconds() / 1000000, "status": "pass"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log field name should be aws-sdk-go

var fields log.Fields
// log with the fields as per mint
if err != nil {
fields = log.Fields{"name": "minio-go", "function": function, "args": args,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

fields = log.Fields{"name": "minio-go", "function": function, "args": args,
"duration": duration.Nanoseconds() / 1000000, "status": "fail", "alert": alert, "message": message, "error": err}
} else {
fields = log.Fields{"name": "minio-go", "function": function, "args": args,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor

@nitisht nitisht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested

- Add aws-sdk-go to mint
- Add presigned PUT test in aws-sdk-go
- Remove presigned PUT tests in aws-sdk-php since the SDK doesn't support
  'X-Amz-Content-Sha256' header with presigned requests
@deekoder
Copy link
Contributor

Ping @ebozduman

@deekoder deekoder merged commit 5c42d21 into minio:master Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants