Skip to content

Commit

Permalink
Add a provider option for all tests in machine and task:
Browse files Browse the repository at this point in the history
This will exercise the provider option logic.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Sep 20, 2023
1 parent 4a2f0b7 commit d0211cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ func createMachine() *v1alpha1.Machine {
Namespace: "test-namespace",
},
InsecureTLS: false,
ProviderOptions: &v1alpha1.ProviderOptions{
Redfish: &v1alpha1.RedfishOptions{
Port: 443,
},
},
},
},
}
Expand Down
5 changes: 5 additions & 0 deletions controller/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
},
}
Expand Down

0 comments on commit d0211cc

Please sign in to comment.