def test_download_resource_on_host(self): ctx = get_local_context() runner = FabricRunner(ctx) tasks.download_resource_on_host( ctx.logger, runner, AGENT_PACKAGE_URL, 'Ubuntu-agent.tar.gz') r = runner.exists('Ubuntu-agent.tar.gz') self.assertTrue(r)
def test_download_resource_on_host(self): ctx = get_local_context() runner = FabricRunner(ctx) tasks.download_resource_on_host(ctx.logger, runner, AGENT_PACKAGE_URL, 'Ubuntu-agent.tar.gz') r = runner.exists('Ubuntu-agent.tar.gz') self.assertTrue(r)
def test_download_resource_on_host(self): properties = { 'cloudify_agent': { 'user': '******', 'host': VAGRANT_MACHINE_IP, 'key': '~/.vagrant.d/insecure_private_key', 'port': 2222, 'distro': 'Ubuntu', 'distro_codename': 'trusty' } } ctx = get_remote_context(properties) runner = FabricRunner(ctx, ctx.node.properties['cloudify_agent']) tasks.download_resource_on_host( ctx.logger, runner, AGENT_PACKAGE_URL, 'Ubuntu-agent.tar.gz') r = runner.exists('Ubuntu-agent.tar.gz') self.assertTrue(r)
def test_download_resource_on_host(self): properties = { 'cloudify_agent': { 'user': '******', 'host': VAGRANT_MACHINE_IP, 'key': '~/.vagrant.d/insecure_private_key', 'port': 2222, 'distro': 'Ubuntu', 'distro_codename': 'trusty' } } ctx = get_remote_context(properties) runner = FabricRunner(ctx, ctx.node.properties['cloudify_agent']) tasks.download_resource_on_host(ctx.logger, runner, AGENT_PACKAGE_URL, 'Ubuntu-agent.tar.gz') r = runner.exists('Ubuntu-agent.tar.gz') self.assertTrue(r)