From 92e88a43b5a2d520c4e8aefc891e4e1da4c569d7 Mon Sep 17 00:00:00 2001 From: Tulsi Shah Date: Wed, 21 Aug 2024 12:59:17 +0000 Subject: [PATCH] remove unit test --- cmd/legacy_param_mapper_test.go | 52 --------------------------------- 1 file changed, 52 deletions(-) diff --git a/cmd/legacy_param_mapper_test.go b/cmd/legacy_param_mapper_test.go index 363a85cad8..02f8b3ba9f 100644 --- a/cmd/legacy_param_mapper_test.go +++ b/cmd/legacy_param_mapper_test.go @@ -644,58 +644,6 @@ func TestLogSeverityRationalization(t *testing.T) { } } -func TestEnableEmptyManagedFoldersRationalization(t *testing.T) { - testcases := []struct { - name string - enableHns bool - enableEmptyManagedFolders bool - expectedEnableEmptyManagedFolders bool - }{ - { - name: "both enable-hns and enable-empty-managed-folders set to true", - enableHns: true, - enableEmptyManagedFolders: true, - expectedEnableEmptyManagedFolders: true, - }, - { - name: "enable-hns set to true and enable-empty-managed-folders set to false", - enableHns: true, - enableEmptyManagedFolders: false, - expectedEnableEmptyManagedFolders: true, - }, - { - name: "enable-hns set to false and enable-empty-managed-folders set to true", - enableHns: false, - enableEmptyManagedFolders: true, - expectedEnableEmptyManagedFolders: true, - }, - { - name: "both enable-hns and enable-empty-managed-folders set to false", - enableHns: false, - enableEmptyManagedFolders: false, - expectedEnableEmptyManagedFolders: false, - }, - } - for _, tc := range testcases { - t.Run(tc.name, func(t *testing.T) { - flags := &flagStorage{ - ClientProtocol: mountpkg.ClientProtocol("http1"), - SequentialReadSizeMb: 200, - ExperimentalMetadataPrefetchOnMount: "disabled", - } - c := config.NewMountConfig() - c.EnableHNS = tc.enableHns - c.ListConfig.EnableEmptyManagedFolders = tc.enableEmptyManagedFolders - - resolvedConfig, err := PopulateNewConfigFromLegacyFlagsAndConfig(&mockCLIContext{}, flags, c) - - if assert.NoError(t, err) { - assert.Equal(t, tc.expectedEnableEmptyManagedFolders, resolvedConfig.List.EnableEmptyManagedFolders) - } - }) - } -} - func TestPopulateConfigFromLegacyFlags_MountOption(t *testing.T) { flags := &flagStorage{ MountOptions: []string{"rw,nodev", "user=jacobsa,noauto"},