{"modulePath":"github.com/openshift/machine-api-operator","version":"v0.2.1-0.20261119161144-2615267e69e2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testing\n\n## Constants\n\n```go\nconst (\n\t// Namespace contains the default namespace for machine-api components\n\tNamespace = \"openshift-machine-api\"\n\t// MachineAnnotationKey contains default machine node annotation\n\tMachineAnnotationKey = \"machine.openshift.io/machine\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// KnownDate contains date that can be used under tests\n\tKnownDate = metav1.Time{Time: time.Date(1985, 06, 03, 0, 0, 0, 0, time.Local)}\n)\n```\n\n## Functions\n\n```go\nfunc FooBar() map[string]string\n```\nFooBar returns foo:bar map that can be used as default label\n\n```go\nfunc IsRetryableAPIError(err error) bool\n```\nIsRetryableAPIError returns whether an API error is retryable or not. inspired by: k8s.io/kubernetes/test/utils.\n\n```go\nfunc NewDefaultMutableFeatureGate() (featuregate.MutableFeatureGate, error)\n```\n\n```go\nfunc NewExternalRemediationMachine() *unstructured.Unstructured\n```\n\n```go\nfunc NewExternalRemediationTemplate() *unstructured.Unstructured\n```\n\n```go\nfunc NewMachine(name string, nodeName string) *machinev1.Machine\n```\nNewMachine returns new machine object that can be used for testing\n\n```go\nfunc NewMachineHealthCheck(name string) *machinev1.MachineHealthCheck\n```\nNewMachineHealthCheck returns new MachineHealthCheck object that can be used for testing\n\n```go\nfunc NewNode(name string, ready bool) *corev1.Node\n```\nNewNode returns new node object that can be used for testing\n\n```go\nfunc NewSelector(labels map[string]string) *metav1.LabelSelector\n```\nNewSelector returns new LabelSelector\n\n```go\nfunc NewSelectorFooBar() *metav1.LabelSelector\n```\nNewSelectorFooBar returns new foo:bar label selector\n\n","path":"github.com/openshift/machine-api-operator/pkg/util/testing","name":"testing","synopsis":"","isRedistributable":true}
