summaryrefslogtreecommitdiff
path: root/tests/setup_sshd_test
AgeCommit message (Collapse)Author
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2022-07-12tests: setup-sshd, setup-user: test ssh dir permissionsNick Hanley
Follow up to the follow up (87e374fd, a91180af). Commit dfd40992 also affects ~/.ssh, so test its permissions too.
2022-07-12tests: setup-sshd: test permissions of authorized_keysNatanael Copa
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow openssh permission recommendations)
2022-07-07tests: setup-sshd: add test for SSH_KEY env varNatanael Copa
Apparently we can set ssh key via SSH_KEY env var. make sure that it works.
2022-05-24setup-sshd: fix backwards compat with -cNatanael Copa
Do not enter interactive mode if -c was set, for backwards compatiblity.
2022-05-23setup-sshd: fix root login without ssh keyNatanael Copa
2022-05-21setup-sshd: dont ask for root login if user was createdNatanael Copa
Don't ask about root login if a user account was created
2022-05-21setup-sshd: refactorNatanael Copa
Ask for ssh key in separate question unless PermitRootLogin was set to no.
2022-05-21tests: fix interactive testNatanael Copa
apparently atf_check can not run in a subshell so we can not pipe the input. Use a temp file for the answers instead
2022-05-21setup-sshd: fix promptsNatanael Copa
Use 'ssh' in lowercase consistently Fix duplicate [prohibit-password]
2022-05-19setup-sshd: use fake rc-service/update for testingNatanael Copa
2022-05-19setup-sshd: make test use the fake wgetNatanael Copa
2022-05-12tests: refactor to de-duplicate codeNatanael Copa
Have a shared test_env.sh to de-duplicate code. Add a common test_usage, where we test that: - option -h prints to stdout and exit with success - invalid option prints usage to stderr and exit with error Use a common init_tests and a common atf_init_test_cases Move documenation links to README.md
2022-05-12tests: move atf_init_test_cases to the topNatanael Copa
Makes it more visible.
2022-05-11tests: rename help with usageNatanael Copa
2022-05-11tests: setup-sshd: add test for interactive questionsNatanael Copa
2022-05-11tests: setup-sshd: move PATH to init_env, add refs to docsNatanael Copa
2022-05-11tests: add test for setup-sshd opensshNatanael Copa
Also set timout to 1 second so we can catch unexpected interactive questions.
2022-05-11tests: add testing with kyuaNatanael Copa
Use kyua to do testing.