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

Basic file serving #28

Merged
merged 1 commit into from
Mar 3, 2016
Merged

Basic file serving #28

merged 1 commit into from
Mar 3, 2016

Conversation

ddaze
Copy link
Member

@ddaze ddaze commented Feb 26, 2016

No description provided.

@ddaze ddaze changed the title WIP: File serving + Performance tests Basic file serving Mar 1, 2016
@@ -157,10 +163,11 @@ def post(self, **kwargs):
args = parser.parse(self.post_args, request)
try:
if args['location_id']:
location = Location.get(args['location_id'])
# TODO: Check why query is used directly.
location = Location.query.get(args['location_id'])
Copy link
Member

Choose a reason for hiding this comment

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

Location.get_by_name()

Copy link
Member Author

Choose a reason for hiding this comment

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

Should I also rename args['location_id'] to 'location_name' or 'location'?

@drjova
Copy link
Member

drjova commented Mar 3, 2016

@ddaze @lnielsen is it ready?

@lnielsen
Copy link
Member

lnielsen commented Mar 3, 2016

@drjova You can merge. Running to a meeting now :-)

@drjova
Copy link
Member

drjova commented Mar 3, 2016

@ddaze could you please rebase :)

@egabancho
Copy link
Member

I think you'll have to rebase again ☺️

* Adds file serving tests. (addresses #15)

* Replaces bucket `location_id` parameter with `location_name`.

* Adds basic serialize function.

* Adds objects test fixture.

Signed-off-by: David Zerulla <ddaze@outlook.de>
@ddaze
Copy link
Member Author

ddaze commented Mar 3, 2016

okay 🚶 :D

assert resp.status_code == 200


def test_post_bucket(app, dummy_location):
Copy link
Member

Choose a reason for hiding this comment

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

Do you really need the dummy_location here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, without a location no bucket can be created.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@egabancho egabancho merged commit 400f6b2 into inveniosoftware:master Mar 3, 2016
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.

None yet

4 participants