K8s: Folders: Modify GetChildren to return only Folder References (#103072)
* Return FolderReference instead of Folder on GetChildren Signed-off-by: Maicon Costa <maiconscosta@gmail.com> --------- Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
@@ -515,7 +515,7 @@ func Test_authorizeAccessToRuleGroup(t *testing.T) {
|
||||
t.Run("should fail if user does not have access to namespace", func(t *testing.T) {
|
||||
f := &folder.Folder{UID: "test-folder"}
|
||||
gen := models.RuleGen
|
||||
genWithFolder := gen.With(gen.WithNamespace(f))
|
||||
genWithFolder := gen.With(gen.WithNamespace(f.ToFolderReference()))
|
||||
rules := genWithFolder.GenerateManyRef(1, 5)
|
||||
|
||||
ac := &recordingAccessControlFake{}
|
||||
|
||||
Reference in New Issue
Block a user