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

ft: ZENKO-740 add e2e tests crr metrics/healthcheck #200

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

philipyoo
Copy link
Contributor

@philipyoo philipyoo commented Jul 19, 2018

most additions are from package-lock file x.x

@philipyoo philipyoo force-pushed the feature/ZENKO-740-crrMetricE2ETests branch from 15edadf to 8747da8 Compare July 19, 2018 22:31
const scalityUtils = new ReplicationUtility(scalityS3Client);
const awsUtils = new ReplicationUtility(awsS3Client);

// Vars

Choose a reason for hiding this comment

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

Minor: Are these comments needed?

.update(Math.random().toString())
.digest('hex');
const keyPrefix = `${srcBucket}/${hex}`;
const key = `${keyPrefix}/object-to-replicate-${Date.now()}`;

Choose a reason for hiding this comment

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

Eventually I hope can move this key creation code into a helper util, but good for now! 😄

`${srcBucket}/${keyPrefix}`, next),
], done));

it('should return specific object properties', done => series([

Choose a reason for hiding this comment

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

No need for series here.

next),
next => scalityUtils.compareObjectsAWS(srcBucket, destBucket, key,
undefined, next),
next => awsUtils.getObject(destBucket, `${destinationKey}`,

Choose a reason for hiding this comment

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

You can get the version ID from the callback of the initial putObject to save making a request to AWS here.


/**
* http request helper method
* @param {Object} path - url path

Choose a reason for hiding this comment

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

Should be of type String. Same for the above method makeGETRequest.

@@ -16,6 +16,11 @@
"mocha": "2.3.4",
"request": "^2.87.0"
},
"devDependencies": {
"eslint": "2.13.1",

Choose a reason for hiding this comment

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

Maybe adding eslint should be another PR round, since it's not being used here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good, I added it because my atom editor was complaining and I couldn't figure out an alternative lol

@philipyoo philipyoo force-pushed the feature/ZENKO-740-crrMetricE2ETests branch from 8747da8 to 4ab1aa5 Compare July 19, 2018 23:46
@ssalaues ssalaues merged commit 2f44079 into master Jul 20, 2018
@ssalaues ssalaues deleted the feature/ZENKO-740-crrMetricE2ETests branch July 20, 2018 00:07
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.

5 participants