Browse Source

dashboard_folders refactoring

Torkel Ödegaard 8 years ago
parent
commit
04da97bffb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/services/sqlstore/dashboard_acl_test.go

+ 2 - 2
pkg/services/sqlstore/dashboard_acl_test.go

@@ -37,7 +37,7 @@ func TestDashboardAclDataAccess(t *testing.T) {
 				Convey("When reading dashboard acl should include acl for parent folder", func() {
 				Convey("When reading dashboard acl should include acl for parent folder", func() {
 					query := m.GetInheritedDashboardAclQuery{OrgId: 1, DashboardId: childDash.Id}
 					query := m.GetInheritedDashboardAclQuery{OrgId: 1, DashboardId: childDash.Id}
 
 
-					err := GetDashboardAcl(&query)
+					err := GetInheritedDashboardAcl(&query)
 					So(err, ShouldBeNil)
 					So(err, ShouldBeNil)
 
 
 					So(len(query.Result), ShouldEqual, 1)
 					So(len(query.Result), ShouldEqual, 1)
@@ -56,7 +56,7 @@ func TestDashboardAclDataAccess(t *testing.T) {
 					Convey("When reading dashboard acl should include acl for parent folder and child", func() {
 					Convey("When reading dashboard acl should include acl for parent folder and child", func() {
 						query := m.GetInheritedDashboardAclQuery{OrgId: 1, DashboardId: childDash.Id}
 						query := m.GetInheritedDashboardAclQuery{OrgId: 1, DashboardId: childDash.Id}
 
 
-						err := GetDashboardAcl(&query)
+						err := GetInheritedDashboardAcl(&query)
 						So(err, ShouldBeNil)
 						So(err, ShouldBeNil)
 
 
 						So(len(query.Result), ShouldEqual, 2)
 						So(len(query.Result), ShouldEqual, 2)