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

[sharing-ng] [QA] Confirm the expected behavior and adjust tests #9159

Closed
grgprarup opened this issue May 14, 2024 · 0 comments · Fixed by #9160
Closed

[sharing-ng] [QA] Confirm the expected behavior and adjust tests #9159

grgprarup opened this issue May 14, 2024 · 0 comments · Fixed by #9160
Assignees
Labels

Comments

@grgprarup
Copy link
Contributor

grgprarup commented May 14, 2024

apiSharingNg/sharedWithMe.feature scenarios are failing in recent PRs.
Builds: https://drone.owncloud.com/owncloud/ocis/34929/33/5
https://drone.owncloud.com/owncloud/ocis/34932/33/5
https://drone.owncloud.com/owncloud/ocis/34934/33/6

First, confirm the expected behavior and then adjust the tests wherever needed.

Failing scenarios

apiSharingNg/sharedWithMe.feature:4879
apiSharingNg/sharedWithMe.feature:4880
apiSharingNg/sharedWithMe.feature:4920
apiSharingNg/sharedWithMe.feature:4921
Scenario Outline: sharee hides the shared resource (Personal space)               # /drone/src/tests/acceptance/features/apiSharingNg/sharedWithMe.feature:4845
    Given user "Alice" has created folder "folder"                                  # FeatureContext::userHasCreatedFolder()
    And user "Alice" has uploaded file with content "hello world" to "testfile.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Alice" has sent the following resource share invitation:              # SharingNgContext::userHasSentTheFollowingResourceShareInvitation()
      | resource        | <resource> |
      | space           | Personal   |
      | sharee          | Brian      |
      | shareType       | user       |
      | permissionsRole | Viewer     |
    When user "Brian" hides the shared resource "<resource>" using the Graph API    # SharingNgContext::userHidesTheSharedResourceUsingTheGraphApi()
    Then the HTTP status code should be "200"                                       # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the JSON data of the response should match                                  # FeatureContext::theJsonDataOfTheResponseShouldMatch()
      """
      {
        "type": "object",
        "required": ["hidden", "mount_point"],
        "properties": {
          "hidden": {
            "const": true
          },
          "mount_point": {
            "type": "object",
            "required": ["path"],
            "properties": {
              "path": {
                "const": "<resource>"
              }
            }
          }
        }
      }
      """

    Examples:
      | resource     |
      | testfile.txt |
Failed step: And the JSON data of the response should match
        Required property missing: hidden, data: {"@UI.Hidden":true,"@client.synchronize":true,"createdBy":{"user":{"displayName":"Alice Hansen","id":"f5a10729-e115-45d7-9e64-380b10138b69"}},"eTag":"\"b6498498766cb8a565a8c24355777d42\"","file":{"mimeType":"text/plain"},"id":"a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!f527d977-3019-4d39-9773-504d47943df9:f5a10729-e115-45d7-9e64-380b10138b69:9be12b32-9247-4356-bab7-686ad0a10323","lastModifiedDateTime":"2024-05-14T09:14:29.308898352Z","name":"testfile.txt","parentReference":{"driveId":"a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668","driveType":"virtual","id":"a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!a0ca6a90-a365-4782-871e-d44447bbc668"},"remoteItem":{"createdBy":{"user":{"displayName":"Alice Hansen","id":"f5a10729-e115-45d7-9e64-380b10138b69"}},"eTag":"\"b6498498766cb8a565a8c24355777d42\"","file":{"mimeType":"text/plain"},"id":"f527d977-3019-4d39-9773-504d47943df9$f5a10729-e115-45d7-9e64-380b10138b69!9e4ab516-94f8-4faa-a82a-d5353aa2c372","lastModifiedDateTime":"2024-05-14T09:14:29.308898352Z","name":"testfile.txt","parentReference":{"driveId":"f527d977-3019-4d39-9773-504d47943df9$f5a10729-e115-45d7-9e64-380b10138b69!f5a10729-e115-45d7-9e64-380b10138b69","driveType":"personal"},"permissions":[{"createdDateTime":"2024-05-14T09:14:29.491025455Z","grantedToV2":{"user":{"displayName":"Brian Murphy","id":"cde8788a-6335-488f-a7f8-3e4178da6bfb"}},"id":"f527d977-3019-4d39-9773-504d47943df9:f5a10729-e115-45d7-9e64-380b10138b69:9be12b32-9247-4356-bab7-686ad0a10323","invitation":{"invitedBy":{"user":{"displayName":"Alice Hansen","id":"f5a10729-e115-45d7-9e64-380b10138b69"}}},"roles":["b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"]}],"size":11},"size":11} (Swaggest\JsonSchema\Exception\ObjectException)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant