Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix TestContainerVulnerabilityCommandsEndToEnd #1484

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Dec 13, 2023

Summary

I have a feeling that the problem of this test is that we run all the t.Run() statements in parallel, I think.

How did you test this change?

Run integration tests locally. CI should be green.

Issue

N/A

@afiune afiune requested a review from a team as a code owner December 13, 2023 01:28
Just by using the `Returns` field on the search. 🤦

```
➜  go-sdk git:(afiune/ci/fix) date;./bin/lacework-cli-darwin-amd64 vuln container show-assessment sha256:a65572164cb78c4d04f57bd66201c775e2dab08fce394806a03a933c5daf9e48 --image_id --nocache;date
Tue Dec 12 17:26:07 PST 2023
Flag --image_id has been deprecated, by default we now look up both, image_id and image_digest at once.
                                  CONTAINER IMAGE DETAILS                                          VULNERABILITIES
------------------------------------------------------------------------------------------+---------------------------------
    ID          sha256:a65572164cb78c4d04f57bd66201c775e2dab08fce394806a03a933c5daf9e48       SEVERITY   COUNT   FIXABLE
    Digest      sha256:77b2d2246518044ef95e3dbd029e51dd477788e5bf8e278e418685aabc3fe28a     -----------+-------+----------
    Registry    index.docker.io                                                               Critical      45        30
    Repository  techallylw/test-cli-dirty                                                     High         169        91
    Size        343.9 MB                                                                      Medium       143        85
    Created At  2020-11-12T00:29:45Z                                                          Low            0         0
    Tags        latest                                                                        Info         345         6

Try adding '--details' to increase details shown about the vulnerability assessment.
Tue Dec 12 17:26:36 PST 2023
➜  go-sdk git:(afiune/ci/fix) ✗ date;lacework vuln container show-assessment sha256:a65572164cb78c4d04f57bd66201c775e2dab08fce394806a03a933c5daf9e48 --image_id --nocache;date
Tue Dec 12 17:26:57 PST 2023
Flag --image_id has been deprecated, by default we now look up both, image_id and image_digest at once.
                                  CONTAINER IMAGE DETAILS                                          VULNERABILITIES
------------------------------------------------------------------------------------------+---------------------------------
    ID          sha256:a65572164cb78c4d04f57bd66201c775e2dab08fce394806a03a933c5daf9e48       SEVERITY   COUNT   FIXABLE
    Digest      sha256:77b2d2246518044ef95e3dbd029e51dd477788e5bf8e278e418685aabc3fe28a     -----------+-------+----------
    Registry    index.docker.io                                                               Critical      45        30
    Repository  techallylw/test-cli-dirty                                                     High         169        91
    Size        343.9 MB                                                                      Medium       143        85
    Created At  2020-11-12T00:29:45Z                                                          Low            0         0
    Tags        latest                                                                        Info         345         6

Try adding '--details' to increase details shown about the vulnerability assessment.
Tue Dec 12 17:31:08 PST 2023
➜  go-sdk git:(afiune/ci/fix) ✗
```

Signed-off-by: Salim Afiune Maya <[email protected]>
@dmurray-lacework
Copy link
Collaborator

integration all

@dmurray-lacework dmurray-lacework merged commit 0f1e35d into main Dec 13, 2023
6 checks passed
@dmurray-lacework dmurray-lacework deleted the afiune/ci/fix branch December 13, 2023 10:45
@lacework-releng lacework-releng mentioned this pull request Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants