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

Update aws-cli and mc tests to use data-dir #50

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

nitisht
Copy link
Contributor

@nitisht nitisht commented Jun 28, 2017

Update dockerfile and Readme

run.sh Outdated
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Minio Cloud Storage, (C) 2017 Minio, Inc.
# Mint, (C) 2017 Minio, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

remove the ,

run.sh Outdated
@@ -55,6 +55,7 @@ _init() {
if [ -z "$DATA_DIR" ]; then
export DATA_DIR="/mint/data"
fi

Copy link
Member

Choose a reason for hiding this comment

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

Stray new line not needed.

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Minio Cloud Storage, (C) 2017 Minio, Inc.
# Mint, (C) 2017 Minio, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

Remove ,

# Make bucket
./mc mb target/$bucketName
./mc mb target/"${bucketName}"
Copy link
Member

Choose a reason for hiding this comment

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

Put "target/" inside the quotes as well.


echo "Testing if the bucket was created"
# list buckets
./mc ls target

echo "Removing the bucket"
# remove bucket
./mc rm target/$bucketName
./mc rm target/"${bucketName}"
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

@nitisht
Copy link
Contributor Author

nitisht commented Jun 28, 2017

Updated.

createData () {
# if no data directory passed from out side, create data directory and populate. else use the data directory from outside
if [ ! -d $data_dir ]; then
mkdir $data_dir
Copy link
Member

Choose a reason for hiding this comment

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

This tabbing is off @nitisht need to see what text editor you are using.

data_dir="/mint/data"
}

createData () {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to createDataFiles

Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LG

- Update dockerfile
@nitisht
Copy link
Contributor Author

nitisht commented Jun 29, 2017

Fixed review comments.

@deekoder deekoder merged commit 7b683ee into minio:master Jun 29, 2017
@nitisht nitisht deleted the refactor-data-dir branch July 4, 2017 07:51
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.

4 participants