Skip to content

Commit d4327a4

Browse files
committed
mantle/kola: add remote resource fetching to fips test
This should help us catch cases like [1] where we regressed on FIPS downstream. [1] https://issues.redhat.com/browse/OCPBUGS-65684
1 parent 95ff89d commit d4327a4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

mantle/kola/tests/fips/fips.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
package fips
22

33
import (
4+
"github.com/coreos/coreos-assembler/mantle/kola"
45
"github.com/coreos/coreos-assembler/mantle/kola/cluster"
56
"github.com/coreos/coreos-assembler/mantle/kola/register"
67
"github.com/coreos/coreos-assembler/mantle/platform/conf"
78
)
89

910
func init() {
10-
// Minimal test case to test FIPS enabling at first boot
11+
// Minimal test case to test FIPS enabling at first boot.
12+
// Also tests that using TLS works in FIPS mode by having Ignition
13+
// fetch a remote resource to make sure [1] doesn't happen again.
14+
// [1] https://issues.redhat.com/browse/OCPBUGS-65684
1115
register.RegisterTest(&register.Test{
1216
Run: fipsEnableTest,
1317
ClusterSize: 1,
1418
Name: `fips.enable`,
1519
Description: "Verify that fips enabled works.",
1620
Flags: []register.Flag{},
21+
Tags: []string{kola.NeedsInternetTag},
1722
Distros: []string{"rhcos"},
1823
UserData: conf.Ignition(`{
1924
"ignition": {
@@ -46,6 +51,12 @@ func init() {
4651
"verification": {}
4752
},
4853
"mode": 420
54+
},
55+
{
56+
"path": "/var/resource/https",
57+
"contents": {
58+
"source": "https://ignition-test-fixtures.s3.amazonaws.com/resources/anonymous"
59+
}
4960
}
5061
]
5162
}

0 commit comments

Comments
 (0)