forked from aquasecurity/tracee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: parameterize e2e signatures test and use it as sanity check (aq…
…uasecurity#1411) Use TRC-2 signature in sanity check. Use TRC-2, TRC-3, TRC-4, TRC-5, TRC-7, TRC-8, TRC-9, TRC-10, TRC-11, TRC-12, TRC-14 in E2E signatures test run on schedule. Resolves: aquasecurity#1234 Resolves: aquasecurity#1191
- Loading branch information
1 parent
4cb62cc
commit c9bad4a
Showing
3 changed files
with
105 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Test signatures on CRON schedule or on demand. | ||
name: Scheduled Signatures Test | ||
|
||
on: | ||
workflow_dispatch: { } | ||
schedule: | ||
- cron: "0 0 * * *" # every night | ||
|
||
env: | ||
GO_VERSION: "1.17" | ||
OPA_VERSION: "v0.35.0" | ||
|
||
jobs: | ||
e2e-test-signatures: | ||
name: "[E2E] Test Signatures" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Install Dependencies | ||
uses: ./.github/actions/build-dependencies | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
opa-version: ${{ env.OPA_VERSION }} | ||
- name: Buld tracee trainer | ||
run: | | ||
make -f tests/Makefile docker-build-tracee-trainer | ||
- name: Build tracee-nocore | ||
run: | | ||
make -f builder/Makefile.tracee-container build-alpine-tracee-nocore | ||
- name: Install BPF | ||
run: | | ||
make -f Makefile.one install-bpf-nocore | ||
- name: Run tests | ||
run: | | ||
go test -v -run "TestTraceeSignatures" ./tests/tracee_test.go \ | ||
-tracee-image-ref "tracee-nocore:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters