test: Run apiSharingNgItemInvitation on k8s deployment (#12996)

* test: run apiSharingNgItemInvitation on k8s deployment

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

* test: synchronization checks after the invitation

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

* test: share with permission role

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

---------

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>
This commit is contained in:
Kavita gautam authored and GitHub committed 2026-10-05 14:31:31 +05:45
1 parent a3f23620cc
commit 281a1f1b46
3 files changed
+28 -3

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
- suite: apiSharingNgPermissions
- suite: apiSharingNgAdditionalShareRole
- suite: apiSharingNgDriveInvitation
# - suite: apiSharingNgItemInvitation
- suite: apiSharingNgItemInvitation
- suite: apiSharingNgDriveLinkShare
- suite: apiSharingNgItemLinkShare
- suite: apiSharingNgLinkShareManagement
@@ -2376,6 +2376,27 @@ class SharingNgContext implements Context {
$this->checkIfShareExists($share, $sharee, $sharer, $space, $shouldOrNot === "should");
}
/**
* @Then /^user "([^"]*)" should have a share "([^"]*)" with permissions role "([^"]*)" shared by user "([^"]*)" from space "([^"]*)"$/
*
* @param string $sharee
* @param string $share
* @param string $role
* @param string $sharer
* @param string $space
*
* @return void
*/
public function userShouldHaveShareWithPermissionsRole(
string $sharee,
string $share,
string $role,
string $sharer,
string $space,
): void {
$this->checkIfShareExists($share, $sharee, $sharer, $space, true, false, $role);
}
/**
* @Then user :sharee should have the following resource shares:
*
@@ -117,8 +117,10 @@ Feature: Send a sharing invitations
| shareType | group |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "200"
And user "Brian" should have a share "<resource>" shared by user "Alice" from space "Personal"
And user "Carol" should have a share "<resource>" shared by user "Alice" from space "Personal"
And user "Brian" should have a share "<resource>" synced
And user "Carol" should have a share "<resource>" synced
And user "Brian" should have a share "<resource>" with permissions role "<permissions-role>" shared by user "Alice" from space "Personal"
And user "Carol" should have a share "<resource>" with permissions role "<permissions-role>" shared by user "Alice" from space "Personal"
And the JSON data of the response should match
"""
{
@@ -1661,6 +1663,8 @@ Feature: Send a sharing invitations
| shareType | group |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "200"
And user "Brian" should have a share "<resource>" synced
And user "Carol" should have a share "<resource>" synced
And user "Brian" should have a share "<resource>" shared by user "Alice" from space "NewSpace"
And user "Carol" should have a share "<resource>" shared by user "Alice" from space "NewSpace"
And the JSON data of the response should match