swift.stats.log_processor.run_once() needs to be refactored and tested
Bug #725215 reported by
Greg Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Greg Lange |
Bug Description
Right now that method has a lot of logic and is difficult to write tests for.
The method should be refactored so it's essentially a shell that only calls out to testable methods.
In addition, these new testable methods need tests.
Related branches
lp:~greglange/swift/lp725215
- John Dickinson: Approve
- Greg Lange: Pending requested
-
Diff: 820 lines (+641/-76)2 files modifiedswift/stats/log_processor.py (+231/-73)
test/unit/stats/test_log_processor.py (+410/-3)
Changed in swift: | |
assignee: | nobody → Greg Lange (greglange) |
Changed in swift: | |
status: | New → Fix Committed |
Changed in swift: | |
milestone: | none → 1.3.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.