Translates the configobj configuration to a CrashTestDummy
CrashTestDummyConfiguration
Param: |
|
---|
CrashTestDummyConfiguration
Param: |
|
---|
Methods
__init__(*args, **kwargs) | CrashTestDummyConfiguration |
Attributes
configspec | A configspec built from configspec_source for validation |
configuration | validates and sets the configuration using the source configuration |
checks the configuration for values not in the configspec
Returns: | True if extra values, false otherwise |
---|
Calls process_errors
Raise: | ConfigurationError if errors are found (or there are unknown options and not allow_extras) |
---|
Logs the error in bold red
Param: |
|
---|
processes configuration, validation_outcome and logs the errors
Returns: | True if there were errors (same as not self.validation_outcome) |
---|
Uses ‘updates_section’ to build configuration from other section
Param: |
|
---|---|
Returns: | section merged with this section or original if appropriate |
A configspec built from configspec_source for validation
the configuration specification source
validates and sets the configuration using the source configuration
Precondition: | self.configspec has full configspec including section name |
---|---|
Returns: | validated configuration for this section |
object with string constants (see SubConfigurationConstants)
Returns: | A logging object. |
---|
Gets the plugin name from the section
Returns: | plugin-name if found or ‘<non-plugin>’ |
---|
A crash test dummy
Outcome of validating the configuration
validator for the configuration