Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_session_record_pipe_io_stdin: remove sshpass #370

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

spoore1
Copy link
Contributor

@spoore1 spoore1 commented Jul 8, 2024

Removing reliance on sshpass by adding code in test case to generate an ssh key and remove it after testing.

run(f'sed -i "/stdin_test/d" ~{user}/.ssh/authorized_keys', shell=True)
run(f'rm -rf ~/.ssh/id_rsa_{user}*', shell=True)

def _gen_ssh_key(user):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes more sense to generate the SSH key as part of src/tlitest/tlitest-setup then only for test_session_record_pipe_io_stdin pass the SSH command-line options which will use the SSH key. This keeps setup code in one place and allows the tests themselves to be simpler.

@spoore1 spoore1 force-pushed the replace_sshpass branch 5 times, most recently from 3b1842d to ba9ce01 Compare July 11, 2024 12:49
The github action building the fedora container with podman is hitting
an error that looks like:

error running container: error from /usr/bin/crun creating container for
[...]: sd-bus call: Transport endpoint is not connected

This requires a workaround to set XDG_RUNTIME_DIR to empty.
@spoore1 spoore1 force-pushed the replace_sshpass branch 4 times, most recently from c008ce3 to 35213f3 Compare July 11, 2024 13:27
Removing reliance on sshpass by adding code in setup to generate an
ssh key and use it in the test code.
@justin-stephenson justin-stephenson merged commit 58ab3f1 into Scribery:main Jul 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants