Skip to content

test: fix to prevent unknown vendor overwrite #3997

@terriko

Description

@terriko

In #3963, @jananir640 has added some code to avoid having data with missing vendors over-ride data we have with vendors included.

I've seen this happen on occasion in CI so I suspect we have at least some tests that will trigger this case if we load bad data in over top of existing data, but it would be nice to have a more explicit test. Because the code is right in generate_sbom writing a test may be a bit complicated and require some mocking of the database to make this work, so this is likely not a beginner-friendly issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions