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: AZURE GET #835

Merged
merged 1 commit into from
Jul 29, 2017
Merged

FT: AZURE GET #835

merged 1 commit into from
Jul 29, 2017

Conversation

nicolas2bert
Copy link
Contributor

@nicolas2bert nicolas2bert commented Jul 25, 2017

FT: AZURE GET

@nicolas2bert nicolas2bert force-pushed the azure/get branch 4 times, most recently from 61d1df4 to 0508ee4 Compare July 25, 2017 21:41
@@ -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] &&
Copy link
Contributor

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({
Copy link
Contributor

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({
Copy link
Contributor

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 => {
Copy link
Contributor

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',
Copy link
Contributor

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 = () => {
Copy link
Contributor

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

@nicolas2bert nicolas2bert force-pushed the azure/get branch 4 times, most recently from eb1040c to 2a5c6c5 Compare July 28, 2017 01:11
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