integration: Add workaround for trace capabilities test on ARO
Use --audit-only=false to avoid issue on ARO.
@@ -433,7 +433,9 @@ func TestCapabilities(t *testing.T) {
capabilitiesCmd := &command{
name: "StartCapabilitiesGadget",
- cmd: fmt.Sprintf("$KUBECTL_GADGET trace capabilities -n %s", ns),
+ // use --audit-only=false to make it work on ARO.
+ // See https://github.com/kinvolk/inspektor-gadget/issues/985 for more details.
+ cmd: fmt.Sprintf("$KUBECTL_GADGET trace capabilities -n %s --audit-only=false", ns),
expectedRegexp: fmt.Sprintf(`%s\s+test-pod.*nice.*CAP_SYS_NICE`, ns),
startAndStop: true,
}
