Convert toaster-it to use mdsal-it 74/36074/9
authorTom Pantelis <tpanteli@brocade.com>
Thu, 10 Mar 2016 11:48:43 +0000 (06:48 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Sun, 13 Mar 2016 19:35:04 +0000 (19:35 +0000)
commit2bf7349f94202f24f132b14c9cd66340c65a67ee
tree341bfd2c685a2c83a67ab5cdd60f47c65eeb9742
parent68eb628b5aca1fc4de4e29bcacf46dcb7b3a19c8
Convert toaster-it to use mdsal-it

I recently added an mdsal dependency to another project and it caused
the toaster-it test to fail. There was no useful output to troubleshoot,
just that some bundles failed to resolve.

It turns out the mdsal dependency and all its dependencies would need to be
added to the hard-coded bundle configuration for the test. This will be ongoing
issue every time a new dependency is added that might affect the toaster test.

To alleviate this I converted the test from manually installing bundles to use
the mdsal-it functionality which installs features into the
opendaylight-karaf-empty distro.

I also changed AbstractConfigTestBase to override the pax logging to
append to stdout, otherwise most output goes to karaf.log. This is helpful to
troubleshoot failures.

Change-Id: I1dd9150c6e617e491458560fe4b360d37548f264
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-it-base/src/main/java/org/opendaylight/controller/config/it/base/AbstractConfigTestBase.java
opendaylight/md-sal/samples/toaster-it/pom.xml
opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java
opendaylight/md-sal/samples/toaster-it/src/test/resources/controller.xml [deleted file]
opendaylight/md-sal/samples/toaster-it/src/test/resources/logback.xml [deleted file]