diff --git a/kola/tests/ignition/kernel.go b/kola/tests/ignition/kernel.go new file mode 100644 index 000000000..93c946827 --- /dev/null +++ b/kola/tests/ignition/kernel.go @@ -0,0 +1,39 @@ +// Copyright The Mantle Authors +// SPDX-License-Identifier: Apache-2.0 +package ignition + +import ( + "github.com/flatcar-linux/mantle/kola/cluster" + "github.com/flatcar-linux/mantle/kola/register" + "github.com/flatcar-linux/mantle/platform/conf" +) + +func init() { + register.Register(®ister.Test{ + Name: "cl.ignition.kargs", + Run: check, + ClusterSize: 1, + UserData: conf.Ignition(`{ + "ignition": { + "version": "3.3.0" + }, + "storage": { + "files": [ + { + "path": "/works", + "contents": { + "source": "data:,helloworld%0A", + "verification": {} + }, + "mode": 420 + } + ] + }, + "kernelArguments": { + "shouldExist": ["flatcar.first_boot=detected"] + } + }`), + }) +} + +func check(c cluster.TestCluster) {}