Documentation
¶
Index ¶
- func ConfigImgContains(ts *testscript.TestScript, neg bool, args []string)
- func ExpandFile(ts *testscript.TestScript, neg bool, args []string)
- func IgnitionImgContains(ts *testscript.TestScript, neg bool, args []string)
- func IgnitionStorageContains(ts *testscript.TestScript, neg bool, args []string)
- func InitrdImgContains(ts *testscript.TestScript, neg bool, args []string)
- func IsoCmp(ts *testscript.TestScript, neg bool, args []string)
- func IsoCmpRegEx(ts *testscript.TestScript, neg bool, args []string)
- func IsoContains(ts *testscript.TestScript, neg bool, args []string)
- func IsoFileCmpRegEx(ts *testscript.TestScript, neg bool, args []string)
- func IsoIgnitionContains(ts *testscript.TestScript, neg bool, args []string)
- func IsoIgnitionUser(ts *testscript.TestScript, neg bool, args []string)
- func IsoSizeMax(ts *testscript.TestScript, neg bool, args []string)
- func IsoSizeMin(ts *testscript.TestScript, neg bool, args []string)
- func UnconfiguredIgnCmp(ts *testscript.TestScript, neg bool, args []string)
- func UnconfiguredIgnContains(ts *testscript.TestScript, neg bool, args []string)
- type FakeOCPRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigImgContains ¶
func ConfigImgContains(ts *testscript.TestScript, neg bool, args []string)
ConfigImgContains `isoPath` `file` check if the specified file `file` is stored within the config image ISO.
func ExpandFile ¶
func ExpandFile(ts *testscript.TestScript, neg bool, args []string)
ExpandFile `file...` can be used to substitute environment variables references for each file specified.
func IgnitionImgContains ¶
func IgnitionImgContains(ts *testscript.TestScript, neg bool, args []string)
IgnitionImgContains `isoPath` `file` check if the specified file `file` is stored within /images/ignition.img archive in the ISO `isoPath` image.
func IgnitionStorageContains ¶
func IgnitionStorageContains(ts *testscript.TestScript, neg bool, args []string)
IgnitionStorageContains `ignPath` `file` check if the specified file `file` is stored within the ignition Storage Files.
func InitrdImgContains ¶
func InitrdImgContains(ts *testscript.TestScript, neg bool, args []string)
InitrdImgContains `isoPath` `file` check if the specified file `file` is stored within a compressed cpio archive by scanning the content of /images/ignition.img archive in the ISO `isoPath` image (note: plain cpio archives are ignored).
func IsoCmp ¶
func IsoCmp(ts *testscript.TestScript, neg bool, args []string)
IsoCmp `isoPath` `isoFile` `expectedFile` check that the content of the file `isoFile` - extracted from the ISO embedded configuration file referenced by `isoPath` - matches the content of the local file `expectedFile`. Environment variables in `expectedFile` are substituted before the comparison.
func IsoCmpRegEx ¶
func IsoCmpRegEx(ts *testscript.TestScript, neg bool, args []string)
IsoCmpRegEx `isoPath` `isoFile` `expectedFile` works as `IsoCmp`, but the expected file can contain a regex pattern that will be applied during the comparison.
func IsoContains ¶
func IsoContains(ts *testscript.TestScript, neg bool, args []string)
IsoContains `isoPath` `file` check if the specified `file` is stored within the ISO `isoPath` image.
func IsoFileCmpRegEx ¶
func IsoFileCmpRegEx(ts *testscript.TestScript, neg bool, args []string)
IsoFileCmpRegEx `isoPath` `isoFile` `expectedFile` check that the content of the ISO `isoFile` - matches the content of the local file `expectedFile` (using a regex comparison). Environment variables in `expectedFile` are substituted before the comparison.
func IsoIgnitionContains ¶
func IsoIgnitionContains(ts *testscript.TestScript, neg bool, args []string)
IsoIgnitionContains `isoPath` `file` checks that the file `isoFile` - extracted from the ISO embedded configuration file referenced by `isoPath` - exists.
func IsoIgnitionUser ¶
func IsoIgnitionUser(ts *testscript.TestScript, neg bool, args []string)
IsoIgnitionUser `isoPath` `user` `authKey` checks if the ignition file extracted from the ISO `isoPath` contains the specified `user` with the given `authKey`.
func IsoSizeMax ¶
func IsoSizeMax(ts *testscript.TestScript, neg bool, args []string)
IsoSizeMax `isoPath` `size` checks if the specified ISO is smaller than the specified number of bytes.
func IsoSizeMin ¶
func IsoSizeMin(ts *testscript.TestScript, neg bool, args []string)
IsoSizeMin `isoPath` `size` checks if the specified ISO is larger than the specified number of bytes.
func UnconfiguredIgnCmp ¶
func UnconfiguredIgnCmp(ts *testscript.TestScript, neg bool, args []string)
UnconfiguredIgnCmp `fileInIgn` `expectedFile` check that the content of the file `fileInIgn` extracted from the unconfigured ignition configuration file matches the content of the local file `expectedFile`. Environment variables in in `expectedFile` are substituted before the comparison.
func UnconfiguredIgnContains ¶
func UnconfiguredIgnContains(ts *testscript.TestScript, neg bool, args []string)
UnconfiguredIgnContains `file` check if the specified file `file` is stored within the unconfigured ignition Storage Files.
Types ¶
type FakeOCPRegistry ¶
type FakeOCPRegistry struct {
// contains filtered or unexported fields
}
FakeOCPRegistry creates a very minimal Docker registry for publishing a single fake OCP release image in fixed repo, plus a bunch of additional images required by the Agent-based installer. The registry is configured to provide just the minimal amount of data required by the tests.
func NewFakeOCPRegistry ¶
func NewFakeOCPRegistry(tmpDir string) *FakeOCPRegistry
NewFakeOCPRegistry creates a new instance of the fake registry.
func (*FakeOCPRegistry) Close ¶
func (fr *FakeOCPRegistry) Close()
Close shutdowns the fake registry server.
func (*FakeOCPRegistry) PushImage ¶
PushImage adds an image to the registry, storing the content provided into a single layer.
func (*FakeOCPRegistry) ReleasePullspec ¶
func (fr *FakeOCPRegistry) ReleasePullspec() string
ReleasePullspec provides an handy method to get the release pull spec.
func (*FakeOCPRegistry) Start ¶
func (fr *FakeOCPRegistry) Start() error
Start configures the handlers, brings up the local server for the registry and pre-load the required data for publishing an OCP release image.