Skip to content

Commit

Permalink
ssh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta committed May 25, 2023
1 parent 7b9b742 commit c330e22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions tests_e2e/orchestrator/lib/agent_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]))

#
Expand Down
2 changes: 1 addition & 1 deletion tests_e2e/test_suites/agent_not_provisioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c330e22

Please sign in to comment.