Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/kola/ignition/remote/config.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
variant: fcos
version: 1.4.0
ignition:
config:
merge:
- source: https://raw.githubusercontent.com/coreos/fedora-coreos-config/testing-devel/tests/kola/ignition/remote/remote.ign
verification:
hash: sha512-1c840823419a2eae431356b58d0c498f4ec84ef3d2b9a4fa42f75749a89fe1f413a848d9082d5dc6c243324b57fa7a76b4ef6dde5d023f9bba549b7755836170
29 changes: 29 additions & 0 deletions tests/kola/ignition/remote/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
set -xeuo pipefail

# To test https://bugzilla.redhat.com/show_bug.cgi?id=1980679
# remote.ign on github: inject kernelArguments and write something to /etc/testfile
# config.ign to include remote kargsfile.ign

# kola: { "tags": "needs-internet" }

ok() {
echo "ok" "$@"
}

fatal() {
echo "$@" >&2
exit 1
}

if ! grep -q foobar /proc/cmdline; then
fatal "missing foobar in kernel cmdline"
else
ok "find foobar in kernel cmdline"
fi
if ! test -e /etc/testfile; then
fatal "not found /etc/testfile"
else
ok "find expected file /etc/testfile"
fi
ok "Ignition remote config test"