Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibi mgmt: add deploy test suite #158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trewest
Copy link
Collaborator

@trewest trewest commented Aug 13, 2024

Add first IBI connected deployment test case

@trewest
Copy link
Collaborator Author

trewest commented Aug 13, 2024

/cc @achuzhoy

By("Create baremetalhost for " + host)
hostBMH := bmh.NewBuilder(
APIClient, host, MGMTConfig.Cluster.Info.ClusterName, info.BMC.URLv4, host, info.BMC.MACAddress, "UEFI")
hostBMH.Definition.Spec.AutomatedCleaningMode = "disabled"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we on purpose want to keep this one hardcoded?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah need to add it to eco-goinfra but this works for now

MGMTConfig.Cluster.Info.ClusterName, MGMTConfig.Cluster.Info.ClusterName,
MGMTConfig.Cluster.Info.BaseDomain, MGMTConfig.Cluster.Info.ClusterName, metav1.LabelSelector{
MatchLabels: map[string]string{
"dummy": "label",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we use this label?

for hostname := range MGMTConfig.Cluster.Info.Hosts {
snoNodeName = hostname

break
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, do we have to use loop (and break) here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just an easy way to get the SNO node's name until we support multinode


return condition.Status == "True" && condition.Reason == ibiv1alpha1.InstallSucceededReason, nil

}).WithTimeout(time.Minute*20).WithPolling(time.Second*5).Should(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20 mins? this includes the installation of the spoke, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for the full installation of the spoke, yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants