You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write an integration test covering the code path that goes from Minder receiving a webhook event to Minder opening a PR.
The test should cover
webhook handler
transmission of the event through watermill from the handler to the executor (preferably via Postgres)
execution of the desired ingestion engine
execution of the desired evaluation engine
execution of the desired remediation engine
The test should check that a PR comment with the expected content is created.
Acceptance criteria
Given a profile test exists
Given profile test has a rule of type secret_scanning
Given remediate is disabled in profile test
When I receive a webhook event about a repository
Then a record exists in history with status failed
Given a profile test exists
Given profile test has a rule of type secret_scanning
Given remediate is enabled in profile test
When I receive a webhook event about a repository
Then a record exists in history with status failed
Then request is made to enable Secret Scanning
The text was updated successfully, but these errors were encountered:
blkt
changed the title
Test Secret Scanning Enabled check use case
Test use case Secret Scanning Enabled check
Oct 3, 2024
blkt
added
the
P0
Fix Now: These are urgent issues that preempt other work in the current sprint
label
Oct 9, 2024
Write an integration test covering the code path that goes from Minder receiving a webhook event to Minder opening a PR.
The test should cover
The test should check that a PR comment with the expected content is created.
Acceptance criteria
Given a profile
test
existsGiven profile
test
has a rule of typesecret_scanning
Given
remediate
isdisabled
in profiletest
When I receive a webhook event about a repository
Then a record exists in history with status
failed
Given a profile
test
existsGiven profile
test
has a rule of typesecret_scanning
Given
remediate
isenabled
in profiletest
When I receive a webhook event about a repository
Then a record exists in history with status
failed
Then request is made to enable Secret Scanning
The text was updated successfully, but these errors were encountered: