Skip to content

Commit

Permalink
Adding a testing scenario for add-hoc test
Browse files Browse the repository at this point in the history
This helps in debugging issues discovered with ipv6

Signed-off-by: Alexander Chuzhoy <[email protected]>
  • Loading branch information
achuzhoy committed Dec 17, 2024
1 parent d083f33 commit aa13d6c
Showing 1 changed file with 24 additions and 4 deletions.
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

0 comments on commit aa13d6c

Please sign in to comment.