elastic / integrations

Elastic Integrations
https://www.elastic.co/integrations
Other
194 stars 418 forks source link

[Imperva Cloud WAF] Add system test for the CEL code #10357

Open andrewkroh opened 2 months ago

andrewkroh commented 2 months ago

I was reviewing the CEL code for the Imperva Cloud WAF integration, and I don't see any system test that would execute this code to ensure that it works. I only see a test for aws-s3. Let's add a mock that emulates the logs.index and log file behavior, and test against that.

There are configuration of Imperva WAF that return compressed and encrypted logs. Let's assume uncompressed and not encrypted for this test case.

References

elasticmachine commented 2 months ago

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)