Remove CSS code JIRA: TSC-111 Change-Id: Ib74c1d3dfc029c2472b8834ae55ce05c8231d225 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Switch to StandardCharsets Guava's Charsets should not be used when StandardCharsets are available. Change-Id: I7c52bd3070bb48857cbba82e8d4bc5993d7aea9d Signed-off-by: Robert Varga <rovarga@cisco.com>
Fix resource leaks in test cases Close AutoCloseable objects created in test cases that were not being closed. Add mock calls for close() methods that now need to be stubbed. Change-Id: Iab057a3a1850d024f02656eb1ae82c6fb1486030 Signed-off-by: Gary Wu <gary.wu1@huawei.com>
Fix license header violations in config-persister-file-xml-adapter Change-Id: I2b3bd61dedfb1d178754fe899acc4657e527daa5 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
BUG-2976: Resolve clash between current and feature cfg pusher Current config pusher now stores list of features present in karaf with the config snapshot itself. Feature pusher now looks at the list and ignores features listed in current config in the initial push. A WARN log message is emitted for each ignored config file + feature. Change-Id: I6e71e692e56d5219cf02cd704dd78215f4a7f5a2 Signed-off-by: Maros Marsalek <mmarsale@cisco.com> (cherry picked from commit fa8b972c6da7e3a24af396ea4bebe6d06f6a8d89)
Add better error reporting to ConfigSnapshot parser Change-Id: I69e37e3f53e44201a3703aaf15d0bb9d3111813b Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Cleanup temporary test files A properly defined test should correctly cleanup after itself when the tests have completed execution. Change-Id: I9887558e698a2ee823a9f91727cde5eccc2348f2 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Fix checkstyle warnings in config-persister-file-xml-adapter. Change-Id: Ia7cd7eda114225cfc35ec301535d5aaec0fa8794 Signed-off-by: Marian Dubai <mdubai@cisco.com>
Update junit Assert imports JUnit 4.11 has moved Assert to org.junit, and deprecated junit.framework.Assert. This adjust the imports to fix the warnings. Change-Id: Iecbf2a1b4ae097989e840ad6f6d5bf759c521639 Signed-off-by: Robert Varga <rovarga@cisco.com>
Bug 491 - Use XmlUnit for xml comparing in junit tests. -comparing XMLs as DOM Documents with XmlUnit -added XmlUnit util class - contains common assertion tests Change-Id: I505c7896e7243873b45c93ea3bf59c941a68924e Signed-off-by: Milos Fabian <milfabia@cisco.com>
updated test coverage for AutodetectDirectoryPersister test coverage raised on config-persister-file-xml-adapter Change-Id: I027fd57baeb233271c88499c29e4708a735bb10d Signed-off-by: Martin Bobak <mbobak@cisco.com>
Added xml storage adapter bundle fragments for config persister. File and Directory based xml adapters are now available. Only File xml adapter is used so far to persist current configuration. Directory based persister is still using plain text to keep backwards compatibility. Change-Id: If1a83701ce23d36313c943e9fe49bd4e704afe27 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>