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

[tests-only][full-ci] add test to list drives by federation user #10753

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

prashant-gurung899
Copy link
Contributor

Description

This PR adds test to list the drives by federation user and check that federation shares doesn't get listed.
See: #10689 (comment)

Scenario: federation user lists ocm shares

Related Issue

Motivation and Context

How Has This Been Tested?

  • Locally
  • CI

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

And using server "REMOTE"
When user "Brian" lists all available spaces via the Graph API
Then the HTTP status code should be "200"
And the JSON response should contain space called "Brian Murphy" and match
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not have to check the personal space. We can just check that the shares doesn't exist in the list

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for PR: #10672 to be merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for PR: #10672 to be merged.

I have used the following step:

And the json responded should not contain a space with name "folderToShare"

@prashant-gurung899 prashant-gurung899 force-pushed the tests-ocm-list-shares branch 3 times, most recently from f7487d7 to fdc56d5 Compare December 16, 2024 06:59
And using server "REMOTE"
When user "Brian" lists all available spaces via the Graph API
Then the HTTP status code should be "200"
And the json responded should not contain a space with name "folderToShare"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And the json responded should not contain a space with name "folderToShare"
And the json response should not contain a space with name "folderToShare"

Looks like a typo. If so we need to fix it on another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we can do that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do the follow up immediately once this PR is merged

Copy link

sonarcloud bot commented Dec 17, 2024

@prashant-gurung899 prashant-gurung899 merged commit fe4e66c into master Dec 17, 2024
4 checks passed
ownclouders pushed a commit that referenced this pull request Dec 17, 2024
[tests-only][full-ci] add test to list drives by federation user
@prashant-gurung899 prashant-gurung899 deleted the tests-ocm-list-shares branch December 17, 2024 06:31
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 this pull request may close these issues.

5 participants