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

Add test coverage to stacks actions #482

Open
fg-j opened this issue Jun 13, 2022 · 0 comments
Open

Add test coverage to stacks actions #482

fg-j opened this issue Jun 13, 2022 · 0 comments

Comments

@fg-j
Copy link

fg-j commented Jun 13, 2022

The get-usns Github action used for polling the Ubuntu USN RSS feed is one of the most important actions in the Paketo ecosystem -- it's the main mechanism that triggers automatic stack updates that keep our stacks secure for users. Currently, it's untested. We should add tests. Many of these may mock out an RSS feed server.

In addition, I think it'd be useful to have a test that will fail if the RSS feed or Ubuntu USN/CVE web pages change their format in a way that makes our data scraping invalid. For instance, asserting that scraping a real USN page for a certain regex returns a reasonable number of matches, a valid URL, etc.

The diff-package-receipts and release-notes actions are also written in Golang and have some degree of complexity. These should be tested as well.

@fg-j fg-j transferred this issue from paketo-buildpacks/jammy-tiny-stack Jun 22, 2022
@fg-j fg-j changed the title Add test coverage to get-usns action Add test coverage to stacks actions Jun 22, 2022
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

No branches or pull requests

1 participant