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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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:

Copy link

sonarcloud bot commented Dec 11, 2024

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
Contributor

@PrajwolAmatya PrajwolAmatya Dec 12, 2024

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 response should contain space called "Brian Murphy" and match
And the JSON response should contain space called "Shares" owned by "Brian" and match

I think we need to check for the Shares space instead of Brian's personal space, as the shared resources are available in Shares space.

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

ocm shares should not be listed in the drives list

@@ -1229,3 +1229,81 @@ Feature: an user shares resources using ScienceMesh application
}
}
"""

@issue-10689
Scenario: federation user lists ocm shares
Copy link
Member

Choose a reason for hiding this comment

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

the scenario title is a bit off from the action

Suggested change
Scenario: federation user lists ocm shares
Scenario: federation user lists all the spaces

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

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