diff --git a/cmd/ova-provider-server/nfs_test.go b/cmd/ova-provider-server/nfs_test.go index f7792475d..495903805 100644 --- a/cmd/ova-provider-server/nfs_test.go +++ b/cmd/ova-provider-server/nfs_test.go @@ -52,7 +52,7 @@ func TestFindOVAFiles(t *testing.T) { expectError: false, }, { - name: "incorrect depth", + name: "incorrect depth ova", setup: func(directory string) { os.MkdirAll(filepath.Join(directory, "subdir1", "subdir2"), 0755) ioutil.WriteFile(filepath.Join(directory, "subdir1", "subdir2", "test3.ova"), []byte{}, 0644) @@ -61,6 +61,18 @@ func TestFindOVAFiles(t *testing.T) { expectedOVFs: nil, expectError: false, }, + { + name: "incorrect depth ovf", + setup: func(directory string) { + //nolint:errcheck + os.MkdirAll(filepath.Join(directory, "subdir1", "subdir2", "subdir3"), 0755) + //nolint:errcheck + ioutil.WriteFile(filepath.Join(directory, "subdir1", "subdir2", "subdir3", "test3.ovf"), []byte{}, 0644) + }, + expectedOVAs: nil, + expectedOVFs: nil, + expectError: false, + }, { name: "folder with extension", setup: func(directory string) {