summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-06-28tests: add test for setup-user -uNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/72
2022-06-28tests: setup-disk: add test for -m noneNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/75
2022-06-28tests: setup-keymap: add test for non-interactive 'none'Natanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/71
2022-06-28tests: setup-user: add test for -k optNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/70
2022-06-28tests: make fake wget to error on missing/or empty urlNatanael Copa
2022-06-28tests: do not run atf_check in a subshellNatanael Copa
We can not pipe to atf_shell as it will make it run in a subshell and will not handle failures properly. Fixes commit ab67ab0733c2 (setup-proxy: fix empty proxy)
2022-06-28setup-proxy: fix empty proxypsykose
the while loop loops until the value of proxyurl is none or a http*:// scheme. however, when proxyurl is set to 'none', it then gets unset here (`proxyurl= ;`), but the following `if` block checks if it is 'none' and fails, so we configure an empty http_proxy= in the proxy.sh profile script. this is then read by some software, and it causes it to crash. for instance, flatpak via glib reads `http_proxy` from the environment, and an empty variable is illegal.
2022-05-24setup-sshd: fix backwards compat with -cNatanael Copa
Do not enter interactive mode if -c was set, for backwards compatiblity.
2022-05-24setup-xen-dom0: add testNatanael Copa
2022-05-23setup-sshd: fix root login without ssh keyNatanael Copa
2022-05-23tests: add a fake openrcNatanael Copa
setup-alpine conditionally runs some parts depending on `openrc --sys` output. Add a fake openrc so we can test this in the future. This also fixes the CI which may not have openrc installed.
2022-05-23setup-alpine: add simple test for quick installNatanael Copa
2022-05-23tests: setup-user: add test for suggested ssh key urlNatanael 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-20setup-user: add -a option to create admin userNatanael Copa
when -a is specified, doas gets installed and configured and username is added to wheels group for doas privileges
2022-05-20setup-user: refactor. ask for username firstNatanael Copa
The username is shorter than full name so ask for that first and suggest the username as fullname which will make the username show up in login menu instead of 'Linux User'. If -f FULLNAME is specified, then give a decent default suggestion based on first letter in first name and lastname.
2022-05-19setup-sshd: use fake rc-service/update for testingNatanael Copa
2022-05-19setup-ntpd: use fake rc-service/update for testingNatanael Copa
2022-05-19tests: make it possible to simluate wget failureNatanael Copa
Make it possible to simulate wget errors by fetching an URL with 'fail' or '404' in the URL string. 'fail' results in DNS error(ish) and '404' returns a 404 error message.
2022-05-19setup-sshd: make test use the fake wgetNatanael Copa
2022-05-19tests: add a fake wgetNatanael Copa
so we can simulate fetching things from internet
2022-05-19tests: add test for setup-user with a single nameNatanael Copa
2022-05-19setup-user: suggest a usernameNatanael Copa
use first char in first name and all last name, in lower case as suggested user name.
2022-05-19setup-user: add -g option to specify groupsNatanael Copa
2022-05-19setup-user: prompt user for ssh keyNatanael Copa
2022-05-19setup-user: new setup scriptNatanael Copa
2022-05-20setup-desktop: add Plasma configurationBart Ribbers
2022-05-19tests: add test for setup-desktop gnomeNatanael Copa
2022-05-19tests: add simple tests for setup-desktopNatanael Copa
2022-05-19tests: add PATH to fake binariesNatanael Copa
2022-05-19tests: add test for setup-xorg-baseNatanael Copa
2022-05-19setup-devd: add more testsNatanael Copa
2022-05-19tests: add fake rc-service scriptNatanael Copa
with tests to verify that it works
2022-05-19tests: add fake rc-update binaryNatanael Copa
and add tests for it to verify that it actually works as expected We can use this for the other tests later
2022-05-18tests: add test for setup-timezone -z compatNatanael Copa
2022-05-18tests: add test for setup-timezone -iNatanael Copa
verify that it does not uninstall tzdata
2022-05-18setup-timezone: add testNatanael Copa
Make it testable
2022-05-13tests: add test for setup-alpineNatanael Copa
2022-05-13tests: add test for update-confNatanael Copa
2022-05-13tests: add test for copy-modloopNatanael Copa
2022-05-13tests: add test for setup-apkreposNatanael Copa
2022-05-13tests: add test for setup-mtaNatanael Copa
2022-05-13tests: add test for setup-diskNatanael Copa
only test for help text. We test most of the other functionality with the alpine-installer-testsuite.
2022-05-13tests: add test for setup-acfNatanael Copa
2022-05-13tests: add test for setup-apkcacheNatanael Copa
2022-05-13tests: add test for setup-lbuNatanael Copa
2022-05-13tests: add test for openntpdNatanael Copa