Skip to content

Commit 8520ad6

Browse files
committed
switch alma single node install test to cmx
1 parent 9a83b2d commit 8520ad6

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

e2e/install_test.go

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ func TestSingleNodeInstallationAlmaLinux8(t *testing.T) {
7272

7373
RequireEnvVars(t, []string{"SHORT_SHA"})
7474

75-
tc := docker.NewCluster(&docker.ClusterInput{
75+
tc := cmx.NewCluster(&cmx.ClusterInput{
7676
T: t,
7777
Nodes: 1,
78-
Distro: "almalinux-8",
79-
LicensePath: "licenses/multi-node-disabled-license.yaml",
80-
ECBinaryPath: "../output/bin/embedded-cluster",
78+
Distribution: "almalinux",
79+
Version: "8",
8180
})
8281
defer tc.Cleanup()
8382

@@ -93,6 +92,12 @@ func TestSingleNodeInstallationAlmaLinux8(t *testing.T) {
9392
t.Fatalf("fail to configure firewalld: %v: %s: %s", err, stdout, stderr)
9493
}
9594

95+
t.Logf("%s: setting selinux to Enforcing mode", time.Now().Format(time.RFC3339))
96+
line = []string{"enable-selinux.sh"}
97+
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
98+
t.Fatalf("failed to set selinux to Enforcing mode: %v: %s: %s", err, stdout, stderr)
99+
}
100+
96101
installSingleNode(t, tc)
97102

98103
isMultiNodeEnabled := "false"
@@ -666,12 +671,6 @@ func TestSingleNodeAirgapUpgrade(t *testing.T) {
666671
t.Fatalf("fail to prepare airgap files on node %s: %v", tc.Nodes[0], err)
667672
}
668673

669-
t.Logf("%s: setting selinux to Enforcing mode", time.Now().Format(time.RFC3339))
670-
line = []string{"enable-selinux.sh"}
671-
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
672-
t.Fatalf("failed to set selinux to Enforcing mode: %v: %s: %s", err, stdout, stderr)
673-
}
674-
675674
installSingleNodeWithOptions(t, tc, installOptions{
676675
isAirgap: true,
677676
version: initialVersion,

0 commit comments

Comments
 (0)