From 57ceb9fbf9d68853be3753a9124717f45d6c3ae4 Mon Sep 17 00:00:00 2001 From: Prafulla Mahindrakar Date: Thu, 13 May 2021 15:31:07 +0530 Subject: [PATCH] Some fixes Signed-off-by: Prafulla Mahindrakar --- cmd/delete/delete.go | 2 +- ..._label_test.go => matchable_execution_cluster_label_test.go} | 0 cmd/update/matchable_execution_cluster_label.go | 2 +- cmd/update/matchable_execution_cluster_label_test.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename cmd/get/{matchable_execution_queue_cluster_label_test.go => matchable_execution_cluster_label_test.go} (100%) diff --git a/cmd/delete/delete.go b/cmd/delete/delete.go index 9c1a56f81..8bee8c58d 100644 --- a/cmd/delete/delete.go +++ b/cmd/delete/delete.go @@ -37,7 +37,7 @@ func RemoteDeleteCommand() *cobra.Command { "cluster-resource-attribute": {CmdFunc: deleteClusterResourceAttributes, Aliases: []string{"cluster-resource-attributes"}, Short: clusterResourceAttributesShort, Long: clusterResourceAttributesLong, PFlagProvider: clusterresourceattribute.DefaultDelConfig, ProjectDomainNotRequired: true}, - "execution-cluster-label": {CmdFunc: deleteExecutionQueueAttributes, Aliases: []string{"execution-cluster-labels"}, + "execution-cluster-label": {CmdFunc: deleteExecutionClusterLabel, Aliases: []string{"execution-cluster-labels"}, Short: executionClusterLabelShort, Long: executionClusterLabelLong, PFlagProvider: executionclusterlabel.DefaultDelConfig, ProjectDomainNotRequired: true}, "execution-queue-attribute": {CmdFunc: deleteExecutionQueueAttributes, Aliases: []string{"execution-queue-attributes"}, diff --git a/cmd/get/matchable_execution_queue_cluster_label_test.go b/cmd/get/matchable_execution_cluster_label_test.go similarity index 100% rename from cmd/get/matchable_execution_queue_cluster_label_test.go rename to cmd/get/matchable_execution_cluster_label_test.go diff --git a/cmd/update/matchable_execution_cluster_label.go b/cmd/update/matchable_execution_cluster_label.go index ac90cb95f..1a8dfe667 100644 --- a/cmd/update/matchable_execution_cluster_label.go +++ b/cmd/update/matchable_execution_cluster_label.go @@ -54,7 +54,7 @@ Usage func updateExecutionClusterLabelFunc(ctx context.Context, args []string, cmdCtx cmdCore.CommandContext) error { updateConfig := executionclusterlabel.DefaultUpdateConfig if len(updateConfig.AttrFile) == 0 { - return fmt.Errorf("attrFile is mandatory while calling update for execution queue attribute") + return fmt.Errorf("attrFile is mandatory while calling update for execution cluster label") } executionClusterLabelFileConfig := executionclusterlabel.FileConfig{} diff --git a/cmd/update/matchable_execution_cluster_label_test.go b/cmd/update/matchable_execution_cluster_label_test.go index 51497fef7..b22b444b7 100644 --- a/cmd/update/matchable_execution_cluster_label_test.go +++ b/cmd/update/matchable_execution_cluster_label_test.go @@ -24,7 +24,7 @@ func TestExecutionClusterLabel(t *testing.T) { updateExecutionClusterLabelSetup() err = updateExecutionClusterLabelFunc(ctx, args, cmdCtx) assert.NotNil(t, err) - assert.Equal(t, fmt.Errorf("attrFile is mandatory while calling update for execution queue attribute"), err) + assert.Equal(t, fmt.Errorf("attrFile is mandatory while calling update for execution cluster label"), err) tearDownAndVerify(t, ``) }) t.Run("successful update project domain attribute", func(t *testing.T) {