testserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultActionsToken

func DefaultActionsToken(t testing.TB) string

func New

func New(t testing.TB, handler http.Handler, options ...actionsServerOption) *actionsServer

New returns a new httptest.Server that handles the authentication requests neeeded to create a new client. Any requests not made to the /actions/runners/registration-token or /actions/runner-registration endpoints will be handled by the provided handler. The returned server is started and will be automatically closed when the test ends.

func NewUnstarted

func NewUnstarted(t testing.TB, handler http.Handler, options ...actionsServerOption) *actionsServer

func WithActionsRegistrationTokenHandler

func WithActionsRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption

func WithActionsToken

func WithActionsToken(token string) actionsServerOption

func WithRunnerRegistrationTokenHandler

func WithRunnerRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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