Documentation
¶
Index ¶
- Constants
- type IRITestHelper
- func (h *IRITestHelper) CreateSimpleNamespace() string
- func (h *IRITestHelper) CreateTestPod(namespace, releaseImage string) *corev1.Pod
- func (h *IRITestHelper) DeleteIRI() error
- func (h *IRITestHelper) DeleteMachineConfig(name string)
- func (h *IRITestHelper) DeleteNamespace(name string)
- func (h *IRITestHelper) DeleteTestPod(namespace, name string)
- func (h *IRITestHelper) GetIRI() *v1.InternalReleaseImage
- func (h *IRITestHelper) GetIRIMachineConfigs() []*v1.MachineConfig
- func (h *IRITestHelper) VerifyIDMSConfigured(releaseImage string)
- type MCInfo
Constants ¶
const (
IRIResourceName = "cluster"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRITestHelper ¶
type IRITestHelper struct {
McClientV1 machineconfigv1.MachineconfigurationV1Interface
// contains filtered or unexported fields
}
IRITestHelper is a helper class for InternalReleaseImage tests
func NewIRITestHelper ¶
func NewIRITestHelper(oc *exutil.CLI) *IRITestHelper
NewIRITestHelper creates a new test helper instance
func (*IRITestHelper) CreateSimpleNamespace ¶
func (h *IRITestHelper) CreateSimpleNamespace() string
CreateSimpleNamespace creates a namespace with pod security labels and waits for SCC annotations. It uses admin client only, avoiding the user/OAuth/project request flow in SetupProject that breaks in proxied CI environments.
func (*IRITestHelper) CreateTestPod ¶
func (h *IRITestHelper) CreateTestPod(namespace, releaseImage string) *corev1.Pod
CreateTestPod creates a test pod with the specified release image in the given namespace
func (*IRITestHelper) DeleteIRI ¶
func (h *IRITestHelper) DeleteIRI() error
DeleteIRI attempts to delete the InternalReleaseImage resource
func (*IRITestHelper) DeleteMachineConfig ¶
func (h *IRITestHelper) DeleteMachineConfig(name string)
DeleteMachineConfig deletes a MachineConfig by name
func (*IRITestHelper) DeleteNamespace ¶
func (h *IRITestHelper) DeleteNamespace(name string)
DeleteNamespace deletes a namespace
func (*IRITestHelper) DeleteTestPod ¶
func (h *IRITestHelper) DeleteTestPod(namespace, name string)
DeleteTestPod deletes a test pod by name from the specified namespace
func (*IRITestHelper) GetIRI ¶
func (h *IRITestHelper) GetIRI() *v1.InternalReleaseImage
GetIRI gets the InternalReleaseImage resource and fails the test if not found
func (*IRITestHelper) GetIRIMachineConfigs ¶
func (h *IRITestHelper) GetIRIMachineConfigs() []*v1.MachineConfig
func (*IRITestHelper) VerifyIDMSConfigured ¶
func (h *IRITestHelper) VerifyIDMSConfigured(releaseImage string)
VerifyIDMSConfigured verifies that the test image repo is present as a mirror in at least one IDMS