steps

package
v0.44.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupScenario

func CleanupScenario(w *world.World)

func DeactivateKillSwitch added in v0.34.0

func DeactivateKillSwitch(w *world.World) error

DeactivateKillSwitch sets kill_switch: false in the enrolled repo's config.yaml. Exported so CleanupScenario (in package steps) can call it during scenario teardown.

func DisableReactionNotifications added in v0.38.0

func DisableReactionNotifications(w *world.World) error

DisableReactionNotifications removes the status_notifications from the enrolled repo's config.yaml. Exported so CleanupScenario can call it during scenario teardown.

func Register

func Register(sc *godog.ScenarioContext)

Register binds all step definitions. Steps retrieve their per-scenario World from the godog context via world.FromContext.

func RestoreAgents added in v0.38.0

func RestoreAgents(w *world.World) error

RestoreAgents sets the agents list back to the pre-scenario value captured by snapshotAgents. Exported so CleanupScenario can call it during scenario teardown.

func RestoreAllowedResources added in v0.38.0

func RestoreAllowedResources(w *world.World) error

RestoreAllowedResources sets allowed_remote_resources back to the pre-scenario value captured by snapshotAllowedResources. Exported so CleanupScenario can call it during scenario teardown.

func RestoreRuntime added in v0.37.0

func RestoreRuntime(w *world.World) error

RestoreRuntime puts the install-time runtime back. Exported so CleanupScenario can call it during scenario teardown.

func ValidateSlotClean added in v0.44.0

func ValidateSlotClean(w *world.World) error

ValidateSlotClean reads the leased repo's config and fails if a previous scenario left mutable state behind (e.g. kill switch on, OWNERS auth enabled). Called when a scenario leases its repo, so stale state is caught before it causes a silent false positive.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL