Ran
|
Files
19
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Introduce ConfigurationObserver class `ConfigurationObserver` is an interface. Its concrete implementations are expected to handle a configuration URI scheme (like 'file://', 'http://', 'etcd://', etc.). The job of the ConfigurationObserver is to implement polling of a server configuration resource for changes, fetching and parsing the configuration, and notifying its associated Coordinator object, so it can act on any configuration changes. The patch includes one concrete subclass, 'FileConfigurationObserver', which handles the 'file://' URI scheme, using inotify to watch the specified configuration file for changes, and parsing it by following PyBal's existing approach to pool configuration files, except replacing eval() with the safer ast.literal_eval(). Change-Id: Icb42149e9
990 of 2484 relevant lines covered (39.86%)
0.4 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|