-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kola/test/oem: add ignition OEM test #235
Conversation
kola/tests/ignition/oem.go
Outdated
|
||
// reusePartition asserts that even if the config uses a different fs format, we keep using `btrfs`. | ||
func reusePartition(c cluster.TestCluster) { | ||
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT -J | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually prefer to use long options in scripts and code, leaving short flags for daily use in the terminal. I think it improves readability.
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT -J | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) | |
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT --json | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) |
kola/tests/ignition/oem.go
Outdated
|
||
// wipeOEM asserts that if the config uses a different fs format with a wipe of the fs we effectively wipe the fs. | ||
func wipeOEM(c cluster.TestCluster) { | ||
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT -J | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT -J | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) | |
out := c.MustSSH(c.Machines()[0], `lsblk --output FSTYPE,LABEL,MOUNTPOINT --json | jq -r '.blockdevices | .[] | select(.label=="OEM") | .fstype'`) |
Run: reusePartition, | ||
ClusterSize: 1, | ||
Distros: []string{"cl"}, | ||
UserData: conf.ContainerLinuxConfig(`storage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be gated behind a minimal release version 2983.0.0
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
2ddaec8
to
1a7dcc8
Compare
Signed-off-by: Mathieu Tortuyaux [email protected]
In this PR, we try to test the usage of OEM - which is too required to run tests for the "new" ignition(v2/v3)
Closes: flatcar/Flatcar#486
Three tests:
btrfs
formatext4
formatwipeFilesystem
How to use
Testing done
Only on
qemu
.