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 s3cmd tests. #182

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Add s3cmd tests. #182

merged 1 commit into from
Oct 10, 2017

Conversation

harshavardhana
Copy link
Member

No description provided.

exit 1
fi

pip3 install s3cmd==$S3CMD_VERSION
Copy link
Member

Choose a reason for hiding this comment

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

As package version is optional to pip, you can install latest s3cmd by pip3 install s3cmd

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.

@@ -0,0 +1,2 @@
*~
*.log
Copy link
Member

Choose a reason for hiding this comment

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

add new line

Copy link
Member Author

Choose a reason for hiding this comment

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

Surw

# See the License for the specific language governing permissions and
# limitations under the License.
#

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Why .. I based this on awscli?

Copy link
Member

Choose a reason for hiding this comment

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

current awscli code is bug prone, unclean and not simple. I suggested the team to clean awscli too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense..

@harshavardhana
Copy link
Member Author

Tests updated @balamurugana @nitisht to be more mc functional test like.

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. One comment regarding logs:

As per our last discussion, logs should be formatted like this

{
  "name": "s3cmd/test_make_bucket",
  "duration": "424",
  "function": "mb",
  "args": {
   bucketName: ""
  }
  "status": "PASS"
}

and so on. We can either fix it here or take it up in next pod.

Copy link
Member

@balamurugana balamurugana left a comment

Choose a reason for hiding this comment

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

minor comment

log_success "$start_time" "${FUNCNAME[0]}"
}

function test_cp_object()
Copy link
Member

Choose a reason for hiding this comment

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

you can name this as test_copy_object() for more readability.

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

@nitisht nitisht merged commit bf87c21 into minio:master Oct 10, 2017
@harshavardhana harshavardhana deleted the s3cmd branch October 10, 2017 02:27
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.

None yet

3 participants