fed_test_utils

package
v0.0.0-...-5de6520 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FedTest

type FedTest struct {
	AdvertiseCancel context.CancelFunc
	Exports         []server_utils.OriginExport
	Token           string
	Ctx             context.Context
	Egrp            *errgroup.Group
	Pids            []int
}

func NewFedTest

func NewFedTest(t testing.TB, originConfig string, originSetup ...func(storageDir string)) (ft *FedTest)

Start up a new Pelican federation for unit testing.

Optional originSetup callbacks are invoked for each export's storage directory after the default hello_world.txt is written but before any XRootD/module processes are launched. This lets tests pre-populate files that XRootD will recognise at startup.

Jump to

Keyboard shortcuts

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