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

Create get_manifest helper. Variablize filename.downcase. #14972

Merged
merged 1 commit into from May 10, 2017

Conversation

ashercodeorg
Copy link
Contributor

Also adds a few tests for existing functionality.

@davidsbailey
Copy link
Member

LGTM, though @islemaster may want to take a look also if this is in response to his feedback in #14809 (comment)

@ashercodeorg
Copy link
Contributor Author

It is tangentially related. Mostly, though I haven't had the chance to spend much time on the bug, I'm struggling to fix the issue in #14809 without spaghetting the code worse than it already is. This PR establishes some tests (in the non-rename case) and does some drive-by cleanup on the way.

def files_put_file(encrypted_channel_id, filename, body)
bad_request if filename.downcase == FileBucket::MANIFEST_FILENAME
downcased_filename = filename.downcase
bad_request if downcased_filename == FileBucket::MANIFEST_FILENAME
Copy link
Contributor

Choose a reason for hiding this comment

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

:( Looks like coverage isn't getting reported correctly for shared tests? Maybe I'll take a look today.

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

👍

@ashercodeorg ashercodeorg merged commit e20035f into staging May 10, 2017
@ashercodeorg ashercodeorg deleted the cleanupFilesPutFile branch May 10, 2017 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants