-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QA] Flaky API tests while counting the number of received emails #10942
Labels
Comments
More failed builds:
Scenario: disable mail and in-app notification for Added as space member event # /drone/src/tests/acceptance/features/apiSettings/notificationSetting.feature:612
Given using spaces DAV path # FeatureContext::usingOldOrNewOrSpacesDavPath()
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API # GraphContext::theAdministratorHasGivenTheRoleUsingTheGraphApi()
And user "Alice" has created a space "newSpace" with the default quota using the Graph API # SpacesContext::theUserHasCreatedASpaceByDefaultUsingTheGraphApi()
When user "Brian" disables notification for the following events using the settings API: # SettingsContext::userDisablesNotificationForFollowingEventUsingSettingsApi()
| Added as space member | mail,in-app |
Then the HTTP status code should be "201" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
And the JSON data of the response should match # FeatureContext::theJsonDataOfTheResponseShouldMatch()
"""
{
"type": "object",
"required": ["value"],
"properties": {
"value": {
"type": "object",
"required": ["identifier","value"],
"properties": {
"identifier": {
"type": "object",
"required": ["extension","bundle","setting"],
"properties": {
"extension": { "const": "ocis-accounts" },
"bundle": { "const": "profile" },
"setting": { "const": "event-space-shared-options" }
}
},
"value": {
"type": "object",
"required": ["id", "bundleId", "settingId", "accountUuid", "resource", "collectionValue"],
"properties": {
"id": { "pattern": "%user_id_pattern%" },
"bundleId": { "pattern": "%user_id_pattern%" },
"settingId": { "pattern": "%user_id_pattern%" },
"accountUuid": { "pattern": "%user_id_pattern%" },
"resource": {
"type": "object",
"required": ["type"],
"properties": { "type": { "const": "TYPE_USER" } }
},
"collectionValue": {
"type": "object",
"required": ["values"],
"properties": {
"values": {
"type": "array",
"maxItems": 2,
"minItems": 2,
"uniqueItems": true,
"items": {
"oneOf": [
{
"type": "object",
"required": ["key", "boolValue"],
"properties": {
"key": { "const": "mail" },
"boolValue": { "const": false }
}
},
{
"type": "object",
"required": ["key", "boolValue"],
"properties": {
"key": { "const": "in-app" },
"boolValue": { "const": false }
}
}
]
}
}
}
}
}
}
}
}
}
}
"""
And user "Alice" has sent the following space share invitation: # SharingNgContext::userHasSentTheFollowingShareShareInvitation()
| space | newSpace |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Viewer |
And user "Brian" should have "0" emails # NotificationContext::userShouldHaveEmail()
│ array(2) {
│ [0]=>
│ object(stdClass)#3239 (9) {
│ ["mailbox"]=> string(5) "brian"
│ ["id"]=> string(20) "20250130T090314-0002"
│ ["from"]=> string(47) "Alice Hansen via ownCloud <[email protected]>"
│ ["to"]=> array(1) { [0]=> string(19) "<[email protected]>" }
│ ["subject"]=> string(41) "Alice Hansen invited you to join newSpace"
│ ["date"]=> string(30) "2025-01-30T09:03:14.740316014Z"
│ ["posix-millis"]=> int(1738227794740)
│ ["size"]=> int(2768)
│ ["seen"]=> bool(false)
│ }
│ [1]=>
│ object(stdClass)#3363 (9) {
│ ["mailbox"]=> string(5) "brian"
│ ["id"]=> string(20) "20250130T090316-0003"
│ ["from"]=> string(47) "Alice Hansen via ownCloud <[email protected]>"
│ ["to"]=> array(1) { [0]=> string(19) "<[email protected]>" }
│ ["subject"]=> string(42) "Alice Hansen invited you to join new-space"
│ ["date"]=> string(30) "2025-01-30T09:03:16.963163659Z"
│ ["posix-millis"]=> int(1738227796963)
│ ["size"]=> int(2771)
│ ["seen"]=> bool(false)
│ }
│ }
│ Failed asserting that actual size 2 matches expected size 0. |
This was referenced Feb 3, 2025
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
API tests are failing while asserting the number of emails received.
The problem could be with inbucket the latest image is 2 years old. or simply the test code could not perform the cleanup.
Builds:
Scenario:
Request Log:
Scenario:
Request log:
Setup
CI
The text was updated successfully, but these errors were encountered: