Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
Signed-off-by: vshubhang <[email protected]>
  • Loading branch information
Shubbhang351 committed Oct 12, 2023
1 parent 1dc998e commit a81c41f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func WithURL(val string) OperationOption {
}
}

// getTestSecretResourceSpec builds the input block for git repository resource based a recipe.
// getTestSecretResourceSpec builds the input block for cluster secret resource based a recipe.
func (testConfig *testAcceptanceConfig) getTestSecretResourceSpec(opts ...OperationOption) string {
cfg := &OperationConfig{
username: "someusername",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ func TestFlattenClusterGroupSecretFullname(t *testing.T) {
expected []interface{}
}{
{
description: "check for nil cluster group git repository full name",
description: "check for nil cluster group cluster secret full name",
input: nil,
expected: nil,
},
{
description: "normal scenario with complete cluster group git repository full name",
description: "normal scenario with complete cluster group cluster secret full name",
input: &secretclustergroupmodel.VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretFullName{
ClusterGroupName: "c",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/stretchr/testify/require"

gitrepositoryclustermodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/kubernetessecret/cluster"
gitrepositoryclustergroupmodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/kubernetessecret/clustergroup"
secretclustermodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/kubernetessecret/cluster"
secretclustergroupmodel "github.com/vmware/terraform-provider-tanzu-mission-control/internal/models/kubernetessecret/clustergroup"
commonscope "github.com/vmware/terraform-provider-tanzu-mission-control/internal/resources/common/scope"
)

Expand All @@ -36,7 +36,7 @@ func TestFlattenScope(t *testing.T) {
description: "normal scenario with complete cluster scope",
input: &ScopedFullname{
Scope: commonscope.ClusterScope,
FullnameCluster: &gitrepositoryclustermodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretFullName{
FullnameCluster: &secretclustermodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretFullName{
Name: "n",
NamespaceName: "nn",
ClusterName: "c",
Expand All @@ -62,7 +62,7 @@ func TestFlattenScope(t *testing.T) {
description: "normal scenario with complete cluster group scope",
input: &ScopedFullname{
Scope: commonscope.ClusterGroupScope,
FullnameClusterGroup: &gitrepositoryclustergroupmodel.VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretFullName{
FullnameClusterGroup: &secretclustergroupmodel.VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretFullName{
Name: "n",
NamespaceName: "nn",
ClusterGroupName: "c",
Expand Down

0 comments on commit a81c41f

Please sign in to comment.