Check only if the recording is enabled
@@ -16,25 +16,10 @@ limitations under the License.
package e2e_test
-import (
- "time"
-)
-
func (e *e2e) testCaseSPODEnableProfileRecorder(nodes []string) {
e.enableLogEnricherInSpod()
e.logf("assert profile recorder is enabled in the spod DS when log enricher is enabled")
profileRecorderEnabledInSPODDS := e.kubectlOperatorNS("get", "ds", "spod", "-o", "yaml")
e.Contains(profileRecorderEnabledInSPODDS, "--with-recording=true")
-
- e.logf("Disable log enricher from SPOD")
- e.kubectlOperatorNS("patch", "spod", "spod", "-p", `{"spec":{"enableLogEnricher": false}}`, "--type=merge")
-
- time.Sleep(defaultWaitTime)
- e.waitInOperatorNSFor("condition=ready", "spod", "spod")
- e.kubectlOperatorNS("rollout", "status", "ds", "spod", "--timeout", defaultBpfRecorderOpTimeout)
-
- e.logf("assert profile recorder is disabled in the spod DS when log enricher is disabled")
- selinuxDisabledInSPODDS := e.kubectlOperatorNS("get", "ds", "spod", "-o", "yaml")
- e.Contains(selinuxDisabledInSPODDS, "--with-recording=false")
}
