forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/kola: Test disabling units via Ignition
Test for: coreos/fedora-coreos-tracker#392
- Loading branch information
1 parent
21b37a6
commit c9e2687
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
variant: fcos | ||
version: 1.4.0 | ||
systemd: | ||
units: | ||
- name: zincati.service | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../data/commonlib.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# kola: { "distros": "fcos", "platforms": "qemu-unpriv" } | ||
# This test makes sure that ignition is able to disable units | ||
# https://github.com/coreos/fedora-coreos-tracker/issues/392 | ||
|
||
# We don't need to test this on every platform. If it passes in | ||
# one place it will pass everywhere. | ||
# This test is currently scoped to FCOS because `zincati` is only available on | ||
# FCOS. | ||
# TODO-RHCOS: Determine if any services on RHCOS may be disabled and adapt test | ||
|
||
set -xeuo pipefail | ||
|
||
. $KOLA_EXT_DATA/commonlib.sh | ||
|
||
if [ "$(systemctl is-enabled zincati.service)" != 'disabled' ]; then | ||
fatal "zincati.service systemd unit should be disabled" | ||
fi | ||
ok "zincati.service systemd unit is enabled" |