AddStepsTo adds Gherkin steps to the godog ScenarioContext
(sc *godog.ScenarioContext)
| 561 | |
| 562 | // AddStepsTo adds Gherkin steps to the godog ScenarioContext |
| 563 | func 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 |
| 574 | func expectVSAUploadToRekor(ctx context.Context) error { |
no outgoing calls