Fix unittest 74/1574/1
authorPhilip Joseph <philip.joseph@riftio.com>
Mon, 17 Apr 2017 08:46:07 +0000 (08:46 +0000)
committerPhilip Joseph <philip.joseph@riftio.com>
Mon, 17 Apr 2017 08:46:07 +0000 (08:46 +0000)
Change-Id: I9175cf5e1adab16a226af16e8288b62c96031f9a
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
rwlaunchpad/plugins/rwpkgmgr/test/utest_publisher_dts.py

index 1606ad2..9a8b0e7 100755 (executable)
@@ -169,14 +169,16 @@ class TestCase(rift.test.dts.AbstractDTSTest):
         # Here, we are assuming that there is no HTTP server at 10.1.2.3
         url = "http://10.1.2.3/common/unittests/plantuml.jar"
         url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", proxy)
+        self.log.debug("Downloader url: {}".format(url_downloader))
 
         download_id = yield from self.job_handler.register_downloader(url_downloader)
+        self.log.debug("Download id: {}".format(download_id))
         assert download_id is not None
-       
+
         # Waiting for 10 secs to be sure all reconnect attempts have been exhausted
         yield from asyncio.sleep(10, loop=self.loop)
-        xpath = "/download-jobs/job[download-id='{}']".format(
-            download_id)
+        xpath = self.project.add_project("/download-jobs/job[download-id='{}']".
+                                         format(download_id))
         result = yield from self.read_xpath(xpath)
         self.log.debug("Test result before complete check - %s", result)
         assert result.status == "FAILED"