Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Add calico e2e test to aws clusterclass suite
Browse files Browse the repository at this point in the history
Signed-off-by: F. Gold <fgold@vmware.com>
  • Loading branch information
codegold79 authored and Haoran Li committed Aug 4, 2022
1 parent 369cc66 commit 5c7fbf9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions pkg/v1/tkg/test/tkgctl/aws_cc/aws_cc_calico_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

// nolint:typecheck,nolintlint
package aws_cc

import (
"context"

. "github.com/onsi/ginkgo"

. "github.com/vmware-tanzu/tanzu-framework/pkg/v1/tkg/test/tkgctl/shared"
)

var _ = Describe("Functional tests for aws (clusterclass) - Calico", func() {
E2ECommonSpec(context.TODO(), func() E2ECommonSpecInput {
return E2ECommonSpecInput{
E2EConfig: e2eConfig,
ArtifactsFolder: artifactsFolder,
Cni: "calico",
Plan: "dev",
Namespace: "tkg-system",
OtherConfigs: map[string]string{"clusterclass": "true"},
}
})
})
2 changes: 1 addition & 1 deletion pkg/v1/tkg/test/tkgctl/shared/e2e_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func E2ECommonSpec(ctx context.Context, inputGetter func() E2ECommonSpecInput) {
By(fmt.Sprintf("Verify workload cluster %q resources have been deleted", clusterName))
Eventually(func() bool {
return clusterResourcesDeleted(ctx, mngClient, clusterResources)
}, waitTimeout, pollingInterval).Should(BeTrue())
}, 2*waitTimeout, pollingInterval).Should(BeTrue())
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/v1/tkg/test/tkgctl/shared/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func verifyClusterBootstrap(ctx context.Context, c client.Client, clusterBootstr
expectedClusterBootstrap.Spec.CNI.ValuesFrom.ProviderRef = &corev1.TypedLocalObjectReference{
APIGroup: &apiGroup,
Kind: "CalicoConfig",
Name: GeneratePackageSecretName(clusterBootstrap.Name, "calico"),
Name: clusterBootstrap.Name,
}
}

Expand Down

0 comments on commit 5c7fbf9

Please # to comment.