Skip to content

Commit

Permalink
Merge pull request #10737 from owncloud/tests/update-issue-tag
Browse files Browse the repository at this point in the history
[tests-only] update issue tags
  • Loading branch information
saw-jan authored Dec 10, 2024
2 parents 154feaa + ad2e310 commit 6866f5a
Show file tree
Hide file tree
Showing 5 changed files with 485 additions and 151 deletions.
9 changes: 8 additions & 1 deletion tests/acceptance/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,14 @@ public static function getEtagRegex(): string {
* @return string
*/
public static function getFederatedUserRegex(): string {
return '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$';
return '(?=(.{4})*$)[A-Za-z0-9+/]*={0,2}$';
}

/**
* @return string
*/
public static function getFederatedFileIdRegex(): string {
return self::getSpaceIdRegex() . '!(?=(.{4})*$)[A-Za-z0-9+/]*={0,2}';
}

/**
Expand Down
8 changes: 8 additions & 0 deletions tests/acceptance/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,14 @@ public function substituteInLineCodes(
],
"parameter" => []
],
[
"code" => "%federated_file_id_pattern%",
"function" => [
__NAMESPACE__ . '\TestHelpers\GraphHelper',
"getFederatedFileIdRegex"
],
"parameter" => []
],
[
"code" => "%group_id_pattern%",
"function" => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Feature: search federation users
And using server "REMOTE"
And user "Brian" has been created with default attributes


@issue-9813
Scenario: users search for federation users by display name
Given using server "LOCAL"
And "Alice" has created the federation share invitation
Expand Down Expand Up @@ -142,7 +142,7 @@ Feature: search federation users
}
"""


@issue-9813
Scenario: user search for federation users by email
Given using server "LOCAL"
And "Alice" has created the federation share invitation
Expand Down
Loading

0 comments on commit 6866f5a

Please sign in to comment.