tests: cleanup the basic structure of integration tests.
This commit is contained in:
parent
206bc3473d
commit
5c70c50c26
45 changed files with 49 additions and 501 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue