diff --git a/internal/resources/kubernetessecret/resource_secret_test.go b/internal/resources/kubernetessecret/resource_secret_test.go index 948e96564..e569017f1 100644 --- a/internal/resources/kubernetessecret/resource_secret_test.go +++ b/internal/resources/kubernetessecret/resource_secret_test.go @@ -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", diff --git a/internal/resources/kubernetessecret/scope/cluster_group_flatten_test.go b/internal/resources/kubernetessecret/scope/cluster_group_flatten_test.go index e1c94d205..bf7988083 100644 --- a/internal/resources/kubernetessecret/scope/cluster_group_flatten_test.go +++ b/internal/resources/kubernetessecret/scope/cluster_group_flatten_test.go @@ -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", }, diff --git a/internal/resources/kubernetessecret/scope/scope_flatten_test.go b/internal/resources/kubernetessecret/scope/scope_flatten_test.go index d33462828..09c0bb1e9 100644 --- a/internal/resources/kubernetessecret/scope/scope_flatten_test.go +++ b/internal/resources/kubernetessecret/scope/scope_flatten_test.go @@ -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" ) @@ -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", @@ -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",