tests: cleanup the basic structure of integration tests.

This commit is contained in:
Alexandre Pujol 2024-11-19 21:27:04 +00:00
parent 206bc3473d
commit 5c70c50c26
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
45 changed files with 49 additions and 501 deletions

View file

@ -10,50 +10,34 @@ setup_file() {
skip
}
# bats test_tags=homectl
@test "homectl: Display help" {
homectl --no-pager --help
aa_check
}
# bats test_tags=homectl
@test "homectl: Create a user account and their associated home directory" {
sudo homectl create user2
aa_check
}
# bats test_tags=homectl
@test "homectl: List user accounts and their associated home directories" {
homectl list
aa_check
}
# bats test_tags=homectl
@test "homectl: Change the password for a specific user" {
sudo homectl passwd user2
aa_check
}
# bats test_tags=homectl
@test "homectl: Run a shell or a command with access to a specific home directory" {
sudo homectl with user2 -- ls -al /home/user2
aa_check
}
# bats test_tags=homectl
@test "homectl: Lock or unlock a specific home directory" {
sudo homectl lock user2
aa_check
}
# bats test_tags=homectl
@test "homectl: Change the disk space assigned to a specific home directory to 100 GiB" {
sudo homectl resize user2 1G
aa_check
}
# bats test_tags=homectl
@test "homectl: Remove a specific user and the associated home directory" {
sudo homectl remove user2
aa_check
}