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-php tests to mint #48

Merged
merged 1 commit into from
Jun 30, 2017
Merged

Add aws-sdk-php tests to mint #48

merged 1 commit into from
Jun 30, 2017

Conversation

krisis
Copy link
Member

@krisis krisis commented Jun 28, 2017

Partially addresses requirements in #38.

@krisis krisis force-pushed the issue/38 branch 3 times, most recently from eca65b9 to 9cf0110 Compare June 29, 2017 08:04
@krisis krisis changed the title [WIP] Add aws-sdk-php tests to mint Add aws-sdk-php tests to mint Jun 29, 2017

class ClientConfig {
public $creds;
public $endpoint = "https://play.minio.io:9000";
Copy link
Contributor

Choose a reason for hiding this comment

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

Endpoint always play server?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, we are setting play as default endpoint. Now that I have a constructor taking $host as a parameter, I can remove this initialization.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see..

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed assigning default value to $endpoint.

@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#!/usr/bin/expect -f
Copy link
Contributor

Choose a reason for hiding this comment

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

this line can be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

done

#!/usr/bin/env bash
#!/usr/bin/expect -f
#
# Minio Cloud Storage, (C) 2017 Minio, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Minio/Mint/

Copy link
Member Author

Choose a reason for hiding this comment

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

done

}

# Install PHP dependencies
installAwsSdkPhpDeps() {
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be good to rename this function as installDeps for consistency. The script name makes it clear it is for aws-sdk-php

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@krisis krisis force-pushed the issue/38 branch 3 times, most recently from 4f72e41 to 5c91576 Compare June 30, 2017 08:46
@nitisht
Copy link
Contributor

nitisht commented Jun 30, 2017

@poornas can you pls check again? Looks like comments we addressed

@nitisht
Copy link
Contributor

nitisht commented Jun 30, 2017

@krisis I would suggest to create random bucket name during initSetup just to make sure if tests are running on play (and previous test aborted for some reason) they don't fail because of the error your previous request to create this bucket succeeded.

@nitisht nitisht merged commit 8669fea into minio:master Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants