From: Philip Joseph Date: Mon, 17 Apr 2017 08:46:07 +0000 (+0000) Subject: Fix unittest X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5074d4e17443836d0a0157bca0b5db9a3a64627f;p=osm%2FSO.git Fix unittest Change-Id: I9175cf5e1adab16a226af16e8288b62c96031f9a Signed-off-by: Philip Joseph --- diff --git a/rwlaunchpad/plugins/rwpkgmgr/test/utest_publisher_dts.py b/rwlaunchpad/plugins/rwpkgmgr/test/utest_publisher_dts.py index 1606ad2f..9a8b0e7e 100755 --- a/rwlaunchpad/plugins/rwpkgmgr/test/utest_publisher_dts.py +++ b/rwlaunchpad/plugins/rwpkgmgr/test/utest_publisher_dts.py @@ -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"