test: update integration tests.
This commit is contained in:
parent
8e2a7e8068
commit
1204e29fb9
9 changed files with 192 additions and 8 deletions
42
tests/integration/apt/apt.bats
Normal file
42
tests/integration/apt/apt.bats
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env bats
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
load ../common
|
||||
|
||||
@test "apt: Update the list of available packages and versions" {
|
||||
sudo apt update
|
||||
}
|
||||
|
||||
@test "apt: Search for a given package" {
|
||||
apt search apparmor
|
||||
}
|
||||
|
||||
@test "apt: Show information for a package" {
|
||||
apt show apparmor
|
||||
}
|
||||
|
||||
@test "apt: Install a package, or update it to the latest available version" {
|
||||
sudo apt install -y pass
|
||||
}
|
||||
|
||||
@test "apt: Remove a package (using 'purge' instead also removes its configuration files)" {
|
||||
sudo apt remove -y pass
|
||||
}
|
||||
|
||||
@test "apt: Upgrade all installed packages to their newest available versions" {
|
||||
sudo apt upgrade -y
|
||||
}
|
||||
|
||||
@test "apt: List all packages" {
|
||||
apt list
|
||||
}
|
||||
|
||||
@test "apt: List installed packages" {
|
||||
apt list --installed
|
||||
}
|
||||
|
||||
@test "apt-moo: Print a cow easter egg" {
|
||||
apt moo
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue