Skip to content

Commit

Permalink
Merge pull request #3001 from pydctw/e2e-update
Browse files Browse the repository at this point in the history
Update ClusterUpgradeConformanceSpec to skip conformance test
  • Loading branch information
k8s-ci-robot authored Dec 3, 2021
2 parents a9878a2 + 77b7a07 commit 3e61428
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions test/e2e/suites/unmanaged/unmanaged_CAPI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"github.com/onsi/ginkgo/config"
"sigs.k8s.io/cluster-api-provider-aws/test/e2e/shared"
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
"sigs.k8s.io/cluster-api/test/framework/clusterctl"
)

var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
Expand All @@ -40,28 +39,7 @@ var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
Expect(e2eCtx.Environment.BootstrapClusterProxy).ToNot(BeNil(), "Invalid argument. BootstrapClusterProxy can't be nil")
})

// DEPRECATED. Should be replaced with the conformance upgrade spec
ginkgo.PDescribe("[Deprecated] KCP Upgrade Spec - Single Control Plane Cluster", func() {
// As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
requiredResources := &shared.TestResource{EC2: 2, IGW: 1, NGW: 1, VPC: 1, ClassicLB: 1, EIP: 3}
ginkgo.BeforeEach(func() {
requiredResources.WriteRequestedResources(e2eCtx, "capi-kcp-single-cp-upgrade-test")
Expect(shared.AcquireResources(requiredResources, config.GinkgoConfig.ParallelNode, flock.New(shared.ResourceQuotaFilePath))).To(Succeed())
})
capi_e2e.KCPUpgradeSpec(ctx, func() capi_e2e.KCPUpgradeSpecInput {
return capi_e2e.KCPUpgradeSpecInput{
E2EConfig: e2eCtx.E2EConfig,
ClusterctlConfigPath: e2eCtx.Environment.ClusterctlConfigPath,
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
Flavor: clusterctl.DefaultFlavor,
ControlPlaneMachineCount: 1,
ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
SkipCleanup: e2eCtx.Settings.SkipCleanup,
}
})
})

// DEPRECATED. Should be replaced with the conformance upgrade spec
// DEPRECATED. Should be replaced with the conformance upgrade spec when ClusterUpgradeConformanceSpec supports different ControlPlaneMachineCount
ginkgo.PDescribe("[Deprecated] KCP Upgrade Spec - HA Control Plane Cluster using Scale-In", func() {
// As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
requiredResources := &shared.TestResource{EC2: 4, IGW: 1, NGW: 1, VPC: 1, ClassicLB: 1, EIP: 3}
Expand Down Expand Up @@ -202,11 +180,11 @@ var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
})
})

ginkgo.Describe("Running the workload cluster upgrade spec and testing K8S conformance [Conformance] [K8s-Upgrade]", func() {
ginkgo.Describe("Cluster Upgrade spec - Single Control Plane Cluster", func() {
// As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
requiredResources := &shared.TestResource{EC2: 5, IGW: 2, NGW: 2, VPC: 2, ClassicLB: 2, EIP: 2}
ginkgo.BeforeEach(func() {
requiredResources.WriteRequestedResources(e2eCtx, "capi-cluster-upgrade-conformance-test")
requiredResources.WriteRequestedResources(e2eCtx, "capi-cluster-upgrade-test")
Expect(shared.AcquireResources(requiredResources, config.GinkgoConfig.ParallelNode, flock.New(shared.ResourceQuotaFilePath))).To(Succeed())
})

Expand All @@ -217,6 +195,7 @@ var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
SkipCleanup: e2eCtx.Settings.SkipCleanup,
SkipConformanceTests: true,
}
})

Expand Down

0 comments on commit 3e61428

Please sign in to comment.