From 2c75449a3855cad34f2e3624c6321a4c2c807468 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 20 Mar 2020 19:52:41 +0100 Subject: test: move TEST-46-HOMED to static files --- test/TEST-46-HOMED/test.sh | 18 +--------- test/TEST-46-HOMED/testsuite.sh | 74 ----------------------------------------- 2 files changed, 1 insertion(+), 91 deletions(-) delete mode 100755 test/TEST-46-HOMED/testsuite.sh (limited to 'test/TEST-46-HOMED') diff --git a/test/TEST-46-HOMED/test.sh b/test/TEST-46-HOMED/test.sh index 99fd5b85b8..5e87cf6143 100755 --- a/test/TEST-46-HOMED/test.sh +++ b/test/TEST-46-HOMED/test.sh @@ -16,22 +16,6 @@ test_setup() { setup_basic_environment mask_supporting_services - - # setup the testsuite service - cat >$initdir/etc/systemd/system/testsuite.service < /testok - exit 0 -fi - -inspect() { - homectl inspect $1 | tee /tmp/a - userdbctl user $1 | tee /tmp/b - cmp /tmp/a /tmp/b - rm /tmp/a /tmp/b -} - -systemd-analyze log-level debug -systemd-analyze log-target console - -NEWPASSWORD=xEhErW0ndafV4s homectl create test-user --disk-size=20M -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl authenticate test-user - -PASSWORD=xEhErW0ndafV4s homectl activate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl update test-user --real-name="Inline test" -inspect test-user - -homectl deactivate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s NEWPASSWORD=yPN4N0fYNKUkOq homectl passwd test-user -inspect test-user - -PASSWORD=yPN4N0fYNKUkOq homectl activate test-user -inspect test-user - -SYSTEMD_LOG_LEVEL=debug PASSWORD=yPN4N0fYNKUkOq NEWPASSWORD=xEhErW0ndafV4s homectl passwd test-user -inspect test-user - -homectl deactivate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl activate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl deactivate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl update test-user --real-name="Offline test" -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl activate test-user -inspect test-user - -PASSWORD=xEhErW0ndafV4s homectl deactivate test-user -inspect test-user - -! PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz -PASSWORD=xEhErW0ndafV4s homectl with test-user -- touch /home/test-user/xyz -PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz -PASSWORD=xEhErW0ndafV4s homectl with test-user -- rm /home/test-user/xyz -! PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz - -homectl remove test-user - -systemd-analyze log-level info - -echo OK > /testok - -exit 0 -- cgit v1.2.3