-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
15edadf
to
8747da8
Compare
const scalityUtils = new ReplicationUtility(scalityS3Client); | ||
const awsUtils = new ReplicationUtility(awsS3Client); | ||
|
||
// Vars |
There was a problem hiding this comment.
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()}`; |
There was a problem hiding this comment.
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([ |
There was a problem hiding this comment.
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}`, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
8747da8
to
4ab1aa5
Compare
most additions are from package-lock file x.x