Skip to content

Commit

Permalink
[wip]test/ignition: add kargs test
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Mar 3, 2022
1 parent d55c6c8 commit e76bad9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions kola/tests/ignition/kernel.go
Original file line number Diff line number Diff line change
@@ -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(&register.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) {}

0 comments on commit e76bad9

Please sign in to comment.