refactoring more renaming

This commit is contained in:
Torkel Ödegaard
2017-06-19 17:30:54 -04:00
parent e0b9ba7554
commit c4a1803060
8 changed files with 25 additions and 25 deletions
+4 -4
View File
@@ -186,16 +186,16 @@ func TestAccountDataAccess(t *testing.T) {
So(err, ShouldBeNil)
Convey("Should remove dependent permissions for deleted org user", func() {
permQuery := &m.GetDashboardPermissionsQuery{DashboardId: 1}
err = GetDashboardPermissions(permQuery)
permQuery := &m.GetDashboardAclInfoListQuery{DashboardId: 1}
err = GetDashboardAclInfoList(permQuery)
So(err, ShouldBeNil)
So(len(permQuery.Result), ShouldEqual, 0)
})
Convey("Should not remove dashboard permissions for same user in another org", func() {
permQuery := &m.GetDashboardPermissionsQuery{DashboardId: 2}
err = GetDashboardPermissions(permQuery)
permQuery := &m.GetDashboardAclInfoListQuery{DashboardId: 2}
err = GetDashboardAclInfoList(permQuery)
So(err, ShouldBeNil)
So(permQuery.Result[0].OrgId, ShouldEqual, ac3.OrgId)