Skip to content

Commit c71ae82

Browse files
Merge 25.7 to develop
2 parents 221db64 + c315267 commit c71ae82

File tree

3 files changed

+73
-6
lines changed

3 files changed

+73
-6
lines changed

data/api/security-api.xml

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ApiTests xmlns="http://labkey.org/query/xml">
22

33
<test name="get group permissions" type="get">
4-
<url>Security%20API%20Test%20Project/security-getGroupPerms.view?</url>
4+
<url>Security%20API%20Test%20Project/security-getGroupPerms.api</url>
55
<response>
66
{"container":
77
{
@@ -93,8 +93,71 @@
9393
</response>
9494
</test>
9595

96+
<test name="get group permissions excluding groups without effective permissions" type="get">
97+
<url>Security%20API%20Test%20Project/security-getGroupPerms.api?includeEmptyPermGroups=false</url>
98+
<response>
99+
{"container":
100+
{
101+
"id": "THIS CONTAINER GUID FIELD IS IGNORED IN JSON CHECK",
102+
"name": "Security API Test Project",
103+
"path": "/Security API Test Project",
104+
"isInheritingPerms": false,
105+
"groups": [
106+
{
107+
"id": 1672,
108+
"name": "testgroup1",
109+
"roles": ["org.labkey.api.security.roles.EditorRole"],
110+
"isSystemGroup": false,
111+
"isProjectGroup": true,
112+
"type": "g",
113+
"effectivePermissions": [
114+
"org.labkey.api.security.permissions.InsertPermission",
115+
"org.labkey.api.security.permissions.DeletePermission",
116+
"org.labkey.api.security.permissions.EditSharedViewPermission",
117+
"org.labkey.api.reports.permissions.EditSharedReportPermission",
118+
"org.labkey.api.security.permissions.ReadPermission",
119+
"org.labkey.api.reports.permissions.ShareReportPermission",
120+
"org.labkey.api.study.permissions.SharedParticipantGroupPermission",
121+
"org.labkey.announcements.model.SecureMessageBoardRespondPermission",
122+
"org.labkey.api.security.permissions.ReadSomePermission",
123+
"org.labkey.api.lists.permissions.ManagePicklistsPermission",
124+
"org.labkey.api.security.permissions.UpdatePermission",
125+
"org.labkey.announcements.model.SecureMessageBoardReadPermission",
126+
"org.labkey.api.security.permissions.SampleWorkflowDeletePermission",
127+
"org.labkey.api.security.permissions.SampleWorkflowJobPermission",
128+
"org.labkey.api.security.permissions.AssayReadPermission",
129+
"org.labkey.api.security.permissions.NotebookReadPermission",
130+
"org.labkey.api.security.permissions.DataClassReadPermission",
131+
"org.labkey.api.security.permissions.MediaReadPermission",
132+
"org.labkey.api.security.permissions.MoveEntitiesPermission",
133+
],
134+
"groups": []
135+
},
136+
{
137+
"id": 1673,
138+
"name": "testgroup2",
139+
"roles": ["org.labkey.api.security.roles.ReaderRole"],
140+
"isSystemGroup": false,
141+
"isProjectGroup": true,
142+
"type": "g",
143+
"effectivePermissions": [
144+
"org.labkey.api.security.permissions.ReadPermission",
145+
"org.labkey.api.security.permissions.ReadSomePermission",
146+
"org.labkey.api.security.permissions.AssayReadPermission",
147+
"org.labkey.api.security.permissions.DataClassReadPermission",
148+
"org.labkey.api.security.permissions.NotebookReadPermission",
149+
"org.labkey.api.security.permissions.MediaReadPermission"
150+
],
151+
"groups": []
152+
}
153+
]
154+
}
155+
}
156+
</response>
157+
</test>
158+
96159
<test name="groups for current user" type="get">
97-
<url>Security%20Api%20Test%20Project/security-getGroupsForCurrentUser.view?</url>
160+
<url>Security%20Api%20Test%20Project/security-getGroupsForCurrentUser.api</url>
98161
<response>
99162
{"groups": [
100163
{
@@ -115,7 +178,7 @@
115178
</test>
116179

117180
<test name="ensure login" type="get">
118-
<url>Security%20Api%20Test%20Project/security-ensureLogin.view?</url>
181+
<url>Security%20Api%20Test%20Project/security-ensureLogin.api</url>
119182
<response>
120183
{"currentUser":
121184
{

src/org/labkey/test/components/ui/grids/DetailTableEdit.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ public DetailDataPanel clickCancel()
543543
{
544544
String title = getSourceTitle();
545545
elementCache().cancelButton.click();
546+
getWrapper().shortWait().until(ExpectedConditions.stalenessOf(elementCache().cancelButton));
546547
return new DetailDataPanel.DetailDataPanelFinder(getDriver()).withTitle(title).waitFor();
547548
}
548549

src/org/labkey/test/components/ui/notifications/ServerNotificationMenu.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public void clickMarkAll()
158158
public ImportsPage clickViewAll()
159159
{
160160
expand();
161-
WebDriverWrapper.waitFor(elementCache().viewAllLink::isDisplayed,
161+
WebDriverWrapper.waitFor(elementCache().viewAllLink()::isDisplayed,
162162
"View all link did not become visible.", 2_500);
163-
elementCache().viewAllLink.click();
163+
elementCache().viewAllLink().click();
164164
return new ImportsPage(getWrapper());
165165
}
166166

@@ -278,7 +278,10 @@ public final WebElement markAll()
278278
.refindWhenNeeded(elementCache().menuContent);
279279
}
280280

281-
public final WebElement viewAllLink = Locator.linkContainingText("View all activity").refindWhenNeeded(this);
281+
public final WebElement viewAllLink()
282+
{
283+
return Locator.linkContainingText("View all activity").refindWhenNeeded(this);
284+
}
282285

283286
}
284287

0 commit comments

Comments
 (0)