proxy server controller tests should be reorganized

Bug #1646963 reported by clayg on 2016-12-02
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)

Bug Description

Mainly I would like to see test.unit.proxy.test_server split up - the file is huge to begin with

Using the example of splitting up TestObjectController [1]

If you just copy the whole class into test.unit.proxy.controller.test_obj - you should remove all the @unpatch_policies tests [2] - then on the original in test.unit.proxy.test_server you should remove everything *except* the @unpatch_policies tests - then fix all the imports until all the tests pass and aren't duplicated anywhere and try to cleanup any cruft along the way.

Do the same thing for the Account & Container test cases (move them into controller.test_account & controller.test_container) until it feels like is only running the tests that exercise the in-process server stuff from do_setup (and all the tests that don't require that infrastructure are split into the respective .controller.test_<service> modules.

This is definitely worth a prize - I'd be happy to negotiate terms if you call me on it

1. N.B. this link is slow (maybe because the file is so big?)
2. e.g.

Sachin (sacpatil) on 2016-12-08
Changed in swift:
assignee: nobody → Sachin (sacpatil)
Sachin (sacpatil) wrote :


What about the class -- TestAccountControllerFakeGetResponse in Do you want me to move them to file: proxy/controllers/

clayg (clay-gerrard) on 2016-12-27
description: updated
clayg (clay-gerrard) wrote :


Yeah, those tests seem to be exercising the use of `account.utils.account_listing_response` in `proxy.controllers.account.AccountController.GETorHEAD` so testing it in `proxy.controllers.test_account` seems reasonable.

Fix proposed to branch: master

Changed in swift:
status: New → In Progress
Sachin (sacpatil) on 2017-01-03
summary: - proxy server controller tests should be reoganized
+ proxy server controller tests should be reorganized
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers