MCPcopy Create free account
hub / github.com/conforma/cli / AddStepsTo

Function AddStepsTo

acceptance/rekor/rekor.go:563–571  ·  view source on GitHub ↗

AddStepsTo adds Gherkin steps to the godog ScenarioContext

(sc *godog.ScenarioContext)

Source from the content-addressed store, hash-verified

561
562// AddStepsTo adds Gherkin steps to the godog ScenarioContext
563func AddStepsTo(sc *godog.ScenarioContext) {
564 sc.Step(`^stub rekord running$`, stubRekordRunning)
565 sc.Step(`^rekor entries are cleared$`, ClearRekorEntries)
566 sc.Step(`^VSA upload to Rekor should be expected$`, expectVSAUploadToRekor)
567 sc.Step(`^VSA should be uploaded to Rekor successfully$`, vsaShouldBeUploadedToRekor)
568 sc.Step(`^VSA index search should return no results$`, stubVSAIndexSearch)
569 sc.Step(`^VSA index search should return valid VSA$`, stubVSAIndexSearchWithResult)
570 sc.Step(`^Rekor upload should fail$`, rekorUploadShouldFail)
571}
572
573// expectVSAUploadToRekor creates WireMock stubs to expect VSA upload requests to Rekor
574func expectVSAUploadToRekor(ctx context.Context) error {

Callers 1

initializeScenarioFunction · 0.92

Calls

no outgoing calls

Tested by 1

initializeScenarioFunction · 0.74