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

Adding a testing scenario for add-hoc test #338

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions tests/lca/imagebasedinstall/mgmt/deploy/tests/e2e-deploy-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ const (
ibiClusterTemplateName = "ibi-cluster-templates-v1"
ibiNodeTemplateName = "ibi-node-templates-v1"

ipv4AddrFamily = "ipv4"
ipv6AddrFamily = "ipv6"
ipv4AddrFamily = "ipv4"
ipv6AddrFamily = "ipv6"
reporterNamespaceToDump = "spoke namespace"
)

var (
Expand Down Expand Up @@ -94,7 +95,7 @@ var _ = Describe(
Skip("Cluster is deployed with siteconfig operator")
}

tsparams.ReporterNamespacesToDump[MGMTConfig.Cluster.Info.ClusterName] = "spoke namespace"
tsparams.ReporterNamespacesToDump[MGMTConfig.Cluster.Info.ClusterName] = reporterNamespaceToDump

createIBIOResouces(ipv4AddrFamily)
})
Expand All @@ -113,11 +114,30 @@ var _ = Describe(
Skip("Cluster not installed with proxy")
}

tsparams.ReporterNamespacesToDump[MGMTConfig.Cluster.Info.ClusterName] = "spoke namespace"
tsparams.ReporterNamespacesToDump[MGMTConfig.Cluster.Info.ClusterName] = reporterNamespaceToDump

createSiteConfigResouces(ipv6AddrFamily)
})

It("through siteconfig operator is successful in an IPv4 environment with DHCP networking",
reportxml.ID("no-testcase"), func() {
if MGMTConfig.StaticNetworking {
Skip("Cluster is deployed with static networking")
}

if !MGMTConfig.SiteConfig {
Skip("Cluster is deployed without siteconfig operator")
}

if MGMTConfig.SeedClusterInfo.Proxy.HTTPProxy != "" || MGMTConfig.SeedClusterInfo.Proxy.HTTPSProxy != "" {
Skip("Cluster installed with proxy")
}

tsparams.ReporterNamespacesToDump[MGMTConfig.Cluster.Info.ClusterName] = reporterNamespaceToDump

createSiteConfigResouces(ipv4AddrFamily)
})

It("successfully creates extramanifests", reportxml.ID("76643"), func() {
if !MGMTConfig.ExtraManifests {
Skip("Cluster not configured with extra manifests")
Expand Down
Loading