summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-11-21setup-apkrepos: handle network errorsNatanael Copa
2022-11-21setup-apkrepos: add test for fastest mirror (-f)Natanael Copa
2022-11-21setup-apkrepos: make fastest/first/random options exclusiveNatanael Copa
Makes no sense to combine them
2022-11-21setup-apkrepos: add test for -1Natanael Copa
2022-11-21setup-apkrepos: fix mirror countingNatanael Copa
when piping the mirror list to `more` the mirror_count is set in a subshell and will end up unset. fixes error when selecting random mirror: /sbin/setup-apkrepos: line 31: arithmetic syntax error fixes commit 860b7271232a (APK Repo Setup)
2022-11-18setup-lbu: fix UUID= prefix in /etc/fstabNatanael Copa
2022-11-18setup-lbu: improve test coverageNatanael Copa
verify that LABEL= is added to fstab
2022-11-18tests: add fake findfs and blkid for testing setup-lbuNatanael Copa
2022-11-18setup-alpine: include /root instead of only authorized_keysNatanael Copa
This works around issue where /root might get world rx permissions. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10532
2022-11-17update-kernel: add mkinitfs.conf to testsNatanael Copa
2022-11-17update-kernel: handle firmware files with spacesNatanael Copa
2022-11-17update-kernel: fix firmware inclusion in modloopNatanael Copa
Some brcm firmwares uses a glob. Fix this and add tests to verify that it works as expected. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10533
2022-11-17update-kernel: add test to verify that firmware is includedNatanael Copa
2022-11-17tests: add fake modinfoNatanael Copa
Needed to test that we get the proper firmware included in modloop with update-kernel
2022-11-17tests: add fake apkNatanael Copa
We need this to test what we get into modloop in update-kernel
2022-11-15setup-interfaces: use iw instead of wireless-toolsNatanael Copa
also fix so we can join networks without PSK filter out hidden (\x00) SSIDs fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518 fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10475
2022-11-11setup-disk: add tests for find_efi_sizeNatanael Copa
2022-11-11setup-disk: add tests for find/setup_partitionsNatanael Copa
2022-11-09setup-disk: fix typo in error messageNatanael Copa
and add test from missing block device
2022-11-09setup-disk: refactor and test find_disksNatanael Copa
2022-11-08setup-timezone: fix listing of sub-timezonesNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10538
2022-11-08setup-user: skip user creation if 'none' is setNatanael Copa
Skip user creation if username is 'none' and no other options are set. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10528
2022-11-08setup-devd: adapt to the busybox-mdev-openrc splitLaurent Bercot
The mdev init script isn't guaranteed to be there anymore; we explicitly add the busybox-mdev-openrc package when choosing mdev as our device manager. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-08-09setup-devd: disable/stop hwdrivers together with mdevNatanael Copa
we should stop and disable hwdrivers when we stop and disable mdev ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/14046
2022-08-09tests: verify that mdevd/udev is started and mdev stoppedNatanael Copa
2022-07-18tests: fix running tests over sshNatanael Copa
setup-alpine checks SSH_CONNECTION. Make sure to clear it when running tests so tests does not fail when we run the testsuite over ssh.
2022-07-15setup-alpine: ensure unintentional ssh diconnectNatanael Copa
Avoid restart network when running over ssh. hostname is now a dependency of networking so openrc will restart networking together with hostname, which may lead to disconnection when running over ssh. Solve this by only restart hostname if SSH_CONNECTION is empty. fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/14018
2022-07-15tests: support 'status' in fake rc-serviceNatanael Copa
so we can verify that service was started when it should and not started when it shouldn't.
2022-07-13setup-interfaces: add test for interactive wifi setupNatanael Copa
2022-07-13libalpine.sh: add test for askpassNatanael 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-user: test permissions of authorized_keysNatanael Copa
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow openssh permission recommendations)
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-12tests: setup-alpine: match against whole linesNick Hanley
Be more strict in checking the contents of files by matching against the whole line. This prevents tests from passing with extraneous leading or trailing characters, or partial paths matching in lbu.list.
2022-07-12tests: setup-alpine: check for authorized_keys in lbu.listNick Hanley
setup-alpine doesn't add root/.ssh to lbu.list. Check for authorized_keys specifically.
2022-07-12setup-alpine: fix typosNick Hanley
2022-07-12tests: lbu package pre/post hooksNatanael Copa
add test to verify that pre/post package hooks are executed.
2022-07-12lbu: add tests for lbu packageNatanael Copa
with and without encryption. This also tests if sysconfdir is actually set ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/77#note_246788
2022-07-12lbu: fix lbu status usageNatanael Copa
2022-07-12lbu: fix lbu revert usageNatanael Copa
2022-07-12lbu: fix test for lbu package usageNatanael Copa
2022-07-12lbu: fix list-backup usageNatanael Copa
2022-07-12lbu: fix package help textNatanael Copa
2022-07-07setup-alpine: add ROOTSSHKEY to set ssh key for rootNatanael Copa
Allow setting root's ssh key from answer file Also add a test to verify that it gets included in lbu for disk install. ref commit 619f3a2d4de9 (setup-alpine: persist root authorized_keys)
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-07-06setup-interfaces: install bonding/bridge pkgsNatanael Copa
The ifupdown-ng implementations are apparently just stubs. Partially reverts commit e9c6302edf1e (setup-interface: avoid install bridge/bonding with ifupdown-ng)
2022-07-05setup-interface: avoid install bridge/bonding with ifupdown-ngNatanael Copa
We don't need to install bridge or bonding packages with ifupdown-ng.
2022-07-05setup-interfaces: don't install legacy vlan packageNatanael Copa
Don't install vlan package if ifupdown-ng package is used. Add tests for this. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10495
2022-07-05setup-interfaces: mock apk add and test that vlan gets installedNatanael Copa
test that vlan gets installed
2022-07-05tests: setup-interfaces: add simple test for dhcpNatanael Copa