Ejemplo n.º 1
0
    def test_download_file(self):
        file_name = 'bring-your-own-cloud-plugin-3.9.4.jar'
        url = 'https://dist.xebialabs.com/community/bring-your-own-cloud-plugin/3.9.4/%s' % file_name
        target = '/tmp/'

        target_file = Utils.download(url, target, self.downloads_username,
                                     self.downloads_password)
        assert os.path.isfile(
            target_file), 'file %s hasn\'t been found' % target_file
        os.remove(target_file)
Ejemplo n.º 2
0
 def test_download_plugin(self):
     tomcat_url = Utils.build_url('4.0.0-beta-3', 'plugin', 'ec2')
     target_file = Utils.download(tomcat_url, os.getcwd(),
                                  self.downloads_username,
                                  self.downloads_password)
     os.remove(target_file)