falcosecurity / event-generator

Generate a variety of suspect actions that are detected by Falco rulesets
Apache License 2.0
94 stars 40 forks source link

Feature: Added declarative subcommand for test command #219

Closed GLVSKiriti closed 3 months ago

GLVSKiriti commented 3 months ago

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind documentation

/kind tests

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area commands

/area pkg

/area events

What this PR does / why we need it: It adds a declarative sub-command for the test command. Which takes yaml file path and parses it and runs the tests similar to the run declarative functionality which we added earlier and it also tests whether a falco rule is triggered or not by connecting to the running falco instance through grpc api.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer: @alacuku @jasondellaluce

poiana commented 3 months ago

LGTM label has been added.

Git tree hash: 5399ffc06bab035f0883f1388132bdacc6723616

poiana commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alacuku, GLVSKiriti, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/falcosecurity/event-generator/blob/gsoc2024/OWNERS)~~ [leogr] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment