UnifiedStorage: Include RV when fieldSelectors are processed in the backend (#115110)

This commit is contained in:
Ryan McKinley
2025-12-11 09:15:01 +03:00
committed by GitHub
parent 3697c8dafc
commit a6043deb33
3 changed files with 62 additions and 35 deletions
+8
View File
@@ -1879,6 +1879,14 @@ func TestIntegrationMoveNestedFolderToRootK8S(t *testing.T) {
require.Equal(t, http.StatusOK, get.Response.StatusCode)
require.Equal(t, "f2", get.Result.UID)
require.Equal(t, "", get.Result.ParentUID)
// Check that we can get the same folder using metadata.name selector
results, err := client.Resource.List(context.Background(), metav1.ListOptions{
FieldSelector: "metadata.name=" + get.Result.UID,
})
require.NoError(t, err)
require.Len(t, results.Items, 1)
require.Equal(t, "f2", results.Items[0].GetName())
}
// Test deleting nested folders ensures postorder deletion