-
Notifications
You must be signed in to change notification settings - Fork 241
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: AZURE GET #835
FT: AZURE GET #835
Conversation
61d1df4
to
0508ee4
Compare
lib/api/objectGet.js
Outdated
@@ -106,6 +111,11 @@ function objectGet(authInfo, request, returnTagCount, log, callback) { | |||
// objMD.location is just a string | |||
dataLocator = Array.isArray(objMD.location) ? | |||
objMD.location : [{ key: objMD.location }]; | |||
|
|||
if (dataLocator && dataLocator[0] && |
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.
add comment:
// if the data backend is azure, there will only ever be at most one item in the dataLocator array
keys.forEach(key => { | ||
describe(`${key.describe} size`, () => { | ||
before(done => { | ||
s3.putObjectAsync({ |
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.
why Async?
|
||
describe('returning error', () => { | ||
before(done => { | ||
s3.putObjectAsync({ |
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.
same
}); | ||
|
||
it('should return an error on get done to object deleted ' + | ||
'from AWS', done => { |
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.
azure
azureStreamingOptions, err => { | ||
if (err) { | ||
const log = createLogger(reqUids); | ||
log.error('err from Azure GET data backend', |
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.
does this actually log an error "not found" on your error test? Even if it does, we should consider doing a head call to azure first to see if we are going to get back an error so we can fail more gracefully.
return azureContainerName; | ||
}; | ||
|
||
utils.getKeysForTestingAzure = () => { |
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.
I'd rename this to 'getAzureKeys' for consistency
eb1040c
to
2a5c6c5
Compare
FT: AZURE GET