fix(folders): allow correct max depth on update (#112570)

This commit is contained in:
Jean-Philippe Quéméner
2025-10-17 12:17:13 +02:00
committed by GitHub
parent 208ccd054b
commit d746266b0d
3 changed files with 30 additions and 17 deletions
+3 -4
View File
@@ -203,7 +203,7 @@ func TestValidateUpdate(t *testing.T) {
expectedErr: "k6 project may not be moved",
},
{
name: "no error when moving to max depth",
name: "can move a folder to max depth",
folder: &folders.Folder{
ObjectMeta: metav1.ObjectMeta{
Name: "test",
@@ -230,11 +230,10 @@ func TestValidateUpdate(t *testing.T) {
{Name: folder.GeneralFolderUID},
},
},
maxDepth: folder.MaxNestedFolderDepth,
expectedErr: "[folder.maximum-depth-reached]",
maxDepth: folder.MaxNestedFolderDepth,
},
{
name: "error when moving too deep",
name: "error when moving exceeds max depth",
folder: &folders.Folder{
ObjectMeta: metav1.ObjectMeta{
Name: "test",