aquasecurity / aquasecurity/tracee

Container Enrichment tests

Open
#1,955 2 comments 0 reactions 1 assignee Claimed by @NDStrahilevitz View on GitHub
area/testing kind/feature priority/backlog
Dominant language
Go
Stars
4.6k
Forks
507
Avg merge
2d 8h
Merged PRs (30d)
9

Description

## Prerequisites

- [ ] This issue is an EPIC issue (add label: EPIC).
- [ ] This issue is an EPIC TASK (add issue to EPIC description).

Select one OR another:

- [x] I'll create a PR to implement this feature (assign to yourself).
- [ ] Someone else should implement this (describe it well).

## Feature description

Container Enrichment's code is dependent on a lot of runtime variables and as such can't be easily (and possibly meaningfully) unit tested.
Since breaking it is quite easy, there is a need for an integration test.

## Additional Information (feature drawings, files, logs, etc)

Possible flow 1 (integration):
Perquisite: add docker to the build-dependencies action
Add the following integration test
1. Create and run a tracee object tracing container_create events with enrichment enabled
2. With the docker golang SDK loop container creations
3. Compare number of loops with number of events (possibly with margin of error?)

Possible flow 2 (e2e)
1. Build a tracee container
2. Run tracee container with enrichment enabled tracing container_create
3. Loop `docker run --rm alpine` commands
4. Compare events to number of loop runs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.