Closed
Bug 675106
Opened 13 years ago
Closed 13 years ago
Clean up lots of test support cruft that's being replicated everywhere
Categories
(Cloud Services :: Server: Core, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: telliott, Assigned: rmiller)
References
Details
(Whiteboard: [qa-])
Attachments
(5 files, 4 obsolete files)
1.87 KB,
patch
|
tarek
:
review+
|
Details | Diff | Splinter Review |
5.99 KB,
patch
|
telliott
:
review+
tarek
:
review+
|
Details | Diff | Splinter Review |
2.08 KB,
patch
|
telliott
:
review+
tarek
:
feedback+
|
Details | Diff | Splinter Review |
3.26 KB,
patch
|
telliott
:
review+
tarek
:
feedback+
|
Details | Diff | Splinter Review |
3.55 KB,
patch
|
telliott
:
review+
tarek
:
feedback+
|
Details | Diff | Splinter Review |
There's a lot of cfg = RawConfigParser() cfg.read(config) # loading loggers if cfg.has_section('loggers'): fileConfig(_INI_FILE) here = {'here': os.path.dirname(os.path.realpath(config))} config = dict([(key, value % here)for key, value in cfg.items('DEFAULT') + cfg.items('app:main')]) config = convert_config(config) storage = SyncStorage.get_from_config(config, 'storage') auth = ServicesAuth.get_from_config(config, 'auth') and finding root directores, etc, floating around in test supports. The code above needs to go (and if we need functionality there, we should build it into the Config object). The rest should have as much repetition as possible pulled into server-core/tests/support
Reporter | ||
Updated•13 years ago
|
Assignee: nobody → rmiller
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #551118 -
Flags: review?(telliott)
Attachment #551118 -
Flags: review?(tarek)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #551119 -
Flags: review?(telliott)
Attachment #551119 -
Flags: review?(tarek)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #551120 -
Flags: review?(tarek)
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #551121 -
Flags: review?(telliott)
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #551122 -
Flags: review?(telliott)
Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 551118 [details] [diff] [review] server-core TestEnv refactor I'm r+ on this as a refactoring. Looking forward to what gets built on from here.
Attachment #551118 -
Flags: review?(telliott) → review+
Updated•13 years ago
|
Attachment #551118 -
Flags: review?(tarek) → review+
Updated•13 years ago
|
Attachment #551119 -
Flags: review?(tarek) → review+
Updated•13 years ago
|
Attachment #551120 -
Flags: review?(tarek) → review+
Assignee | ||
Comment 7•13 years ago
|
||
Attachment #551118 -
Attachment is obsolete: true
Attachment #553907 -
Flags: review?(telliott)
Attachment #553907 -
Flags: review?(tarek)
Assignee | ||
Comment 8•13 years ago
|
||
Attachment #551119 -
Attachment is obsolete: true
Attachment #551119 -
Flags: review?(telliott)
Attachment #553908 -
Flags: review?(telliott)
Attachment #553908 -
Flags: feedback?(tarek)
Assignee | ||
Comment 9•13 years ago
|
||
Attachment #551121 -
Attachment is obsolete: true
Attachment #551121 -
Flags: review?(telliott)
Attachment #553910 -
Flags: review?(telliott)
Attachment #553910 -
Flags: feedback?(tarek)
Assignee | ||
Comment 10•13 years ago
|
||
Attachment #551122 -
Attachment is obsolete: true
Attachment #551122 -
Flags: review?(telliott)
Attachment #553911 -
Flags: review?(telliott)
Attachment #553911 -
Flags: feedback?(tarek)
Reporter | ||
Updated•13 years ago
|
Attachment #553907 -
Flags: review?(telliott) → review+
Reporter | ||
Comment 11•13 years ago
|
||
Comment on attachment 553908 [details] [diff] [review] server-reg using new TestEnv This is fine for now, but I think a goal should be to get rid of this entirely.
Attachment #553908 -
Flags: review?(telliott) → review+
Reporter | ||
Updated•13 years ago
|
Attachment #553910 -
Flags: review?(telliott) → review+
Reporter | ||
Comment 12•13 years ago
|
||
Comment on attachment 553911 [details] [diff] [review] account-portal using new TestEnv You cleaned up my flake8 protests. Boo ;)
Attachment #553911 -
Flags: review?(telliott) → review+
Assignee | ||
Comment 13•13 years ago
|
||
finally got all of the components using the same config loading setup, got rid of lots of duplicate code
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 14•13 years ago
|
||
Comment on attachment 553910 [details] [diff] [review] server-storage using new TestEnv Looks like initenv() itself could be removed -- the test could use TestEnv directly, or maybe be a base TestCase class we can inherit from.
Attachment #553910 -
Flags: feedback?(tarek) → feedback+
Updated•13 years ago
|
Attachment #553908 -
Flags: feedback?(tarek) → feedback+
Updated•13 years ago
|
Attachment #553907 -
Flags: review?(tarek) → review+
Comment 15•13 years ago
|
||
Comment on attachment 553911 [details] [diff] [review] account-portal using new TestEnv Without this fix,accountportal_test.cfg was not used. Toby maybe you want to double-check the behavior there now >--- a/tests.ini Wed Aug 17 10:03:42 2011 +0200 >+++ b/tests.ini Wed Aug 17 14:33:05 2011 -0700 >@@ -1,7 +1,6 @@ > [DEFAULT] > debug = True > translogger = False >-extends = etc/accountportal_test.cfg > > [server:main] > use = egg:Paste#http >@@ -10,6 +9,7 @@ > > [app:main] > use = egg:AccountPortal >+configuration = file:%(here)s/etc/accountportal_test.cfg > > # Logging configuration > [loggers]
Attachment #553911 -
Flags: feedback?(tarek) → feedback+
Updated•13 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•