Skip to content
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 notification tests #11088

Open
saw-jan opened this issue Mar 3, 2025 · 0 comments
Open

[QA] Flaky notification tests #11088

saw-jan opened this issue Mar 3, 2025 · 0 comments
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Mar 3, 2025

1. Attempt to read property "bundles" on null

Builds:

#apiSettings/notificationSetting.feature:422
  @antivirus
  Scenario: disable in-app notification for "File rejected" event (Project space)                                         # /drone/src/tests/acceptance/features/apiSettings/notificationSetting.feature:422
    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()
    And user "Alice" has sent the following space share invitation:                                                       # SharingNgContext::userHasSentTheFollowingShareShareInvitation()
      | space           | newSpace     |
      | sharee          | Brian        |
      | shareType       | user         |
      | permissionsRole | Space Editor |
    When user "Brian" disables notification for the following events using the settings API:                              # SettingsContext::userDisablesNotificationForFollowingEventUsingSettingsApi()
      | File rejected | in-app |
      Warning: Attempt to read property "bundles" on null in /drone/src/tests/acceptance/bootstrap/SettingsContext.php line 592
    Then the HTTP status code should be "201"
Requests log
### When user "Brian" disables notification for the following events using the settings API:
	_______________________________________________________________________

	==> REQUEST
	POST /api/v0/settings/bundles-list
	X-Request-ID: apiSettings/notificationSetting.feature:422-431
	==> REQ BODY
	{}

	<== RESPONSE
	201 Created
	Transfer-Encoding: chunked
	<== RES BODY
	{"bundles":[{"id":"2a506de7-99bd-4f0d-994e-c38e72c28fd9","name":"profile","type":"TYPE_DEFAULT","extension":"ocis-accounts","displayName":"Profile","settings":[{"id":"aa8cfbe5-95d4-4f7e-a032-c3c01f5f062f","name":"language","displayName":"Language","description":"User language","singleChoiceValue":{"options":[{"value":{"stringValue":"bg"},"displayValue":"български"},{"value":{"stringValue":"cs"},"displayValue":"Czech"},{"value":{"stringValue":"de"},"displayValue":"Deutsch"},{"value":{"stringValue":"en"},"displayValue":"English"},{"value":{"stringValue":"es"},"displayValue":"Español"},{"value":{"stringValue":"fr"},"displayValue":"Français"},{"value":{"stringValue":"gl"},"displayValue":"Galego"},{"value":{"stringValue":"it"},"displayValue":"Italiano"},{"value":{"stringValue":"nl"},"displayValue":"Nederlands"},{"value":{"stringValue":"ko"},"displayValue":"한국어"},{"value":{"stringValue":"sq"},"displayValue":"Shqipja"},{"value":{"stringValue":"sv"},"displayValue":"Svenska"},{"value":{"stringValue":"tr"},"displayValue":"Türkçe"},{"value":{"stringValue":"zh"},"displayValue":"汉语"}]},"resource":{"type":"TYPE_USER"}},{"id":"33ffb5d6-cd07-4dc0-afb0-84f7559ae438","name":"disable-email-notifications","displayName":"Disable Email Notifications","description":"Disable email notifications","boolValue":{"label":"disable notifications"},"resource":{"type":"TYPE_USER"}},{"id":"ec3ed4a3-3946-4efc-8f9f-76d38b12d3a9","name":"auto-accept-shares","displayName":"Auto accept shares","description":"Automatically accept shares","boolValue":{"default":true,"label":"auto accept shares"},"resource":{"type":"TYPE_USER"}},{"id":"08dec2fe-3f97-42a9-9d1b-500855e92f25","name":"email-sending-interval-options","displayName":"Email sending interval","description":"Selected value:","singleChoiceValue":{"options":[{"value":{"stringValue":"instant"},"default":true,"displayValue":"Instant"},{"value":{"stringValue":"daily"},"displayValue":"Daily"},{"value":{"stringValue":"weekly"},"displayValue":"Weekly"},{"value":{"stringValue":"never"},"displayValue":"Never"}]},"resource":{"type":"TYPE_USER"}},{"id":"872d8ef6-6f2a-42ab-af7d-f53cc81d7046","name":"event-share-created-options","displayName":"Share Received","description":"Notify when I have received a share","multiChoiceCollectionValue":{"options":[{"value":{"boolValue":{"default":true}},"key":"in-app","displayValue":"In-App"},{"value":{"boolValue":{"default":true}},"key":"mail","displayValue":"Email"}]},"resource":{"type":"TYPE_USER"}},{"id":"d7484394-8321-4c84-9677-741ba71e1f80","name":"event-share-removed-options","displayName":"Share Removed","description":"Notify when a received share has been removed","multiChoiceCollectionValue":{"options":[{"value":{"boolValue":{"default":true}},"key":"in-app","displayValue":"In-App"},{"value":{"boolValue":{"default":true}},"key":"mail","displayValue":"Email"}]},"resource":{"type":"TYPE_USER"}},{"id":"e1aa0b7c-1b0f-4072-9325-c643c89fee4e","name":"event-share-expired-options","displayName":"Share Expired","description":"Notify when a received share has expired","multiChoiceCollectionValue":{"options":[{"value":{"boolValue":{"default":true}},"key":"in-app","displayValue":"In-App"},{"value":{"boolValue":{"default":true}},"key":"mail","displayValue":"Email"}]},"resource":{"type":"TYPE_USER"}},{"id":"694d5ee1-a41c-448c-8d14-396b95d2a918","name":"event-space-shared-options","displayName":"Added as space member","description":"Notify when I have been added as a member to a space","multiChoiceCollectionValue":{"options":[{"value":{"boolValue":{"default":true}},"key":"in-app","displayValue":"In-App"},{"value":{"boolValue":{"default":true}},"key":"mail","displayValue":"Email"}]},"resource":{"type":"TYPE_USER"}},{"id":"26c20e0e-98d

2. #11073

@saw-jan saw-jan added the QA:team label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant