Feature #195
Tasks #292: Fix communication with C++ baseline
Integrate Option File Parsing
Status: | Resolved | Start date: | 02/17/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Python | Estimated time: | 3.00 hours | |
Target version: | 0.2 |
Description
.rsbrc files + environment + command line?
Associated revisions
Initial version of configuration mechanism
refs #195
refs #195
- rsb/__init__.py: Subscriber and Publisher do not require a fully
prepared Router object anymore; instead, a ParticipantConfig object
can be supplied - rsb/util.py: added ParticipantConfig class which stores
configuration options and handles retrieving options form different
sources - rsb/rsbspread/__init__.py: the constructor of SpreadPort now accepts
a dictionary of configuration options and extracts the port and
hostname of the Spread daemon from it
Adapted unit tests to account for configuration changes
refs #195
refs #195
- test/rsbspreadtest.py: constructor Publisher and Subscriber object
differently to account for changes introduced for configuration API
Better parsing of configuration options in rsb/__init__.py
refs #195
refs #195
- rsb/__init__.py: enabled options of transports defaults to false;
honor quality of service options; strip whitespace form
configuration option values
Implemented ParticipantConfig test cases in test/coretest.py
refs #195
refs #195
- test/coretest.py: implemented test cases testFromFile and
testFromEnvironment in suite ParticipantConfig
Added test config file test/smoke-test.conf
refs #195
refs #195
- test/smoke-test.conf: new file; test config file for test case
test.utiltest.EnumTest
Added test case default option values in test/coretest.py
refs #195
refs #195
- rsb/__init__.py: added fromDict method to ParticipantConfig class
- test/coretest.py: added test case testOverwritingDefaults to test
suite ParticipantConfigTest
History
#1 Updated by J. Wienke almost 13 years ago
- Parent task set to #292
#2 Updated by J. Wienke almost 13 years ago
- Target version set to 0.2
#3 Updated by J. Moringen almost 13 years ago
Specification is at Configuration. For version 0.2:
- rsb.conf
- Environment variables
Commandline
#4 Updated by J. Wienke almost 13 years ago
- Assignee changed from J. Wienke to J. Moringen
#5 Updated by J. Moringen almost 13 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 60
#6 Updated by J. Moringen almost 13 years ago
- Status changed from In Progress to Resolved
- % Done changed from 60 to 100
The only option that is not respected is errorhandling.onhandlererror
.