From d0211cc6c2b2a20c130ceaa5191abe86168173cd Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Wed, 20 Sep 2023 10:11:24 -0600 Subject: [PATCH] Add a provider option for all tests in machine and task: This will exercise the provider option logic. Signed-off-by: Jacob Weinstock --- controller/machine_test.go | 5 +++++ controller/task_test.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/controller/machine_test.go b/controller/machine_test.go index 6ee978e..56e0ee1 100644 --- a/controller/machine_test.go +++ b/controller/machine_test.go @@ -136,6 +136,11 @@ func createMachine() *v1alpha1.Machine { Namespace: "test-namespace", }, InsecureTLS: false, + ProviderOptions: &v1alpha1.ProviderOptions{ + Redfish: &v1alpha1.RedfishOptions{ + Port: 443, + }, + }, }, }, } diff --git a/controller/task_test.go b/controller/task_test.go index f3c7855..f581f71 100644 --- a/controller/task_test.go +++ b/controller/task_test.go @@ -219,6 +219,11 @@ func createTask(name string, action v1alpha1.Action, secret *corev1.Secret) *v1a Name: secret.Name, Namespace: secret.Namespace, }, + ProviderOptions: &v1alpha1.ProviderOptions{ + Redfish: &v1alpha1.RedfishOptions{ + Port: 443, + }, + }, }, }, }