Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Add aws-sdk-php tests to mint#48

Merged
nitisht merged 1 commit into
minio:masterfrom
krisis:issue/38
Jun 30, 2017
Merged

Add aws-sdk-php tests to mint#48
nitisht merged 1 commit into
minio:masterfrom
krisis:issue/38

Conversation

@krisis

@krisis krisis commented Jun 28, 2017

Copy link
Copy Markdown
Member

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
Comment thread run/core/aws-sdk-php/quick-tests.php Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread run/core/aws-sdk-php/run.sh Outdated
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#!/usr/bin/expect -f

Copy link
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

Comment thread run/core/aws-sdk-php/run.sh Outdated
#!/usr/bin/env bash
#!/usr/bin/expect -f
#
# Minio Cloud Storage, (C) 2017 Minio, Inc.

Copy link
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

Comment thread build/php/aws-sdk-php.sh Outdated
}

# Install PHP dependencies
installAwsSdkPhpDeps() {

Copy link
Copy Markdown
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
Copy Markdown
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

nitisht commented Jun 30, 2017

Copy link
Copy Markdown
Contributor

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

@nitisht

nitisht commented Jun 30, 2017

Copy link
Copy Markdown
Contributor

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants