Skip to content

new(plugins/container): added fetcher tests.#723

Merged
poiana merged 1 commit intofalcosecurity:mainfrom
FedeDP:new/container_pl_fetcher_tests
Apr 17, 2025
Merged

new(plugins/container): added fetcher tests.#723
poiana merged 1 commit intofalcosecurity:mainfrom
FedeDP:new/container_pl_fetcher_tests

Conversation

@FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Apr 17, 2025

What type of PR is this?

/kind bug
/kind cleanup

Any specific area of the project related to this PR?

/area plugins

What this PR does / why we need it:

Also, fixed a small bug in cri engine get() method.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@poiana poiana requested review from leogr and mstemm April 17, 2025 11:13
@poiana poiana added the size/L label Apr 17, 2025
@FedeDP FedeDP force-pushed the new/container_pl_fetcher_tests branch 3 times, most recently from d087689 to ce11d31 Compare April 17, 2025 11:26
@github-actions
Copy link

Rules files suggestions


func (c *criEngine) get(ctx context.Context, containerId string) (*event.Event, error) {
ctrs, err := c.client.ListContainers(ctx, &v1.ContainerFilter{State: &v1.ContainerStateValue{}, Id: containerId})
ctrs, err := c.client.ListContainers(ctx, &v1.ContainerFilter{Id: containerId})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same fix as #718

Also, fixed a small bug in cri engine `get()` method.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
@FedeDP FedeDP force-pushed the new/container_pl_fetcher_tests branch from ce11d31 to 562ffc4 Compare April 17, 2025 13:23
@github-actions
Copy link

Rules files suggestions

@poiana
Copy link
Contributor

poiana commented Apr 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, leogr

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 0d595a2 into falcosecurity:main Apr 17, 2025
22 checks passed
@FedeDP FedeDP deleted the new/container_pl_fetcher_tests branch April 18, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants