Skip to content

Commit 40c07c9

Browse files
committed
Enable selinux in almalinux single node install test
1 parent b8560c5 commit 40c07c9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

e2e/install_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ func TestSingleNodeInstallationAlmaLinux8(t *testing.T) {
9393
t.Fatalf("fail to configure firewalld: %v: %s: %s", err, stdout, stderr)
9494
}
9595

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

98104
isMultiNodeEnabled := "false"

e2e/scripts/enable-selinux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -euox pipefail
3+
4+
setenforce 1

0 commit comments

Comments
 (0)