diff --git a/tests_e2e/orchestrator/lib/agent_test_suite.py b/tests_e2e/orchestrator/lib/agent_test_suite.py index 8e60bf2ba9..24f7525b19 100644 --- a/tests_e2e/orchestrator/lib/agent_test_suite.py +++ b/tests_e2e/orchestrator/lib/agent_test_suite.py @@ -317,11 +317,14 @@ def _setup_node(self, install_test_agent: bool) -> None: tarball_path: Path = Path("/tmp/waagent.tar") log.info("Creating %s with the files need on the test node", tarball_path) log.info("Adding orchestrator/scripts") - run_command(['tar', 'cvf', str(tarball_path), '--transform=s,.*/,bin/,', '-C', str(self.context.test_source_directory/"orchestrator"/"scripts"), '.']) - # log.info("Adding tests/scripts") - # run_command(['tar', 'rvf', str(tarball_path), '--transform=s,.*/,bin/,', '-C', str(self.context.test_source_directory/"tests"/"scripts"), '.']) + command = "cd {0} ; tar cvf {1} --transform='s,^,bin/,' *".format(self.context.test_source_directory/"orchestrator"/"scripts", str(tarball_path)) + log.info("%s\n%s", command, run_command(command, shell=True)) + log.info("Adding tests/scripts") + # command = "cd {0} ; tar cvf {1} --transform='s,^,bin/,' *".format(self.context.test_source_directory/"tests"/"scripts", str(tarball_path)) + # log.info("%s\n%s", command, run_command(command, shell=True)) log.info("Adding tests/lib") - run_command(['tar', 'rvf', str(tarball_path), '--transform=s,^,lib/,', '-C', str(self.context.test_source_directory.parent), '--exclude=__pycache__', 'tests_e2e/tests/lib']) + command = "cd {0} ; tar rvf {1} --transform='s,^,lib/,' --exclude=__pycache__ tests_e2e/tests/lib".format(self.context.test_source_directory.parent, str(tarball_path)) + log.info("%s\n%s", command, run_command(command, shell=True)) log.info("Contents of %s:\n\n%s", tarball_path, run_command(['tar', 'tvf', str(tarball_path)])) # diff --git a/tests_e2e/test_suites/agent_not_provisioned.yml b/tests_e2e/test_suites/agent_not_provisioned.yml index 2868d86a7b..07dd5ccce2 100644 --- a/tests_e2e/test_suites/agent_not_provisioned.yml +++ b/tests_e2e/test_suites/agent_not_provisioned.yml @@ -5,7 +5,7 @@ name: "AgentNotProvisioned" tests: - "agent_not_provisioned/agent_not_provisioned.py" -images: "ubuntu_2004" +images: "random(endorsed)" template: "agent_not_provisioned/template.py" owns_vm: true install_test_agent: false