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

[full-ci] [tests-only] Added test for creating group with case sensitive #4422

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

grgprarup
Copy link
Contributor

@grgprarup grgprarup commented Aug 19, 2022

Description

Group names are case insensitive with oCIS, we cannot create groups with the same name but different lower and upper cases. So, tests to check group creation with different lower and upper cases are added as suggested in #4291 (comment)

Related Issue

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:

@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch 2 times, most recently from 170584b to 02dff34 Compare August 19, 2022 11:42
@grgprarup grgprarup self-assigned this Aug 22, 2022
@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch 2 times, most recently from 7125ae5 to 3842b41 Compare August 22, 2022 03:35
@grgprarup grgprarup marked this pull request as ready for review August 22, 2022 04:11
And group "<group_id1>" has been created
When the administrator creates a group "<group_id2>" using the GraphApi
And the administrator creates a group "<group_id3>" using the GraphApi
Then the HTTP status code of responses on all endpoints should be "500"
Copy link
Member

Choose a reason for hiding this comment

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

is 500 really the reply we want?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

500 is the actual current behavior of graph API for creating an existing user or group, as mentioned in comment #3516 (comment) the expected code must be 4XX
We have an issue reported here #3516 and mentioned the behavior in #3247.

@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch from 3842b41 to bda3407 Compare August 22, 2022 06:51
@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch 4 times, most recently from 403774a to 7e501b0 Compare August 22, 2022 09:25
Copy link
Contributor

@kiranparajuli589 kiranparajuli589 left a comment

Choose a reason for hiding this comment

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

lgtm 👍 ci was failing at https://drone.owncloud.com/owncloud/ocis/14751/3/3, restarted

@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch from 7e501b0 to bcf6001 Compare August 23, 2022 03:57
.drone.env Outdated Show resolved Hide resolved
tests/acceptance/expected-failures-API-on-OCIS-storage.md Outdated Show resolved Hide resolved
@grgprarup
Copy link
Contributor Author

Need to rebase and push after bump PR #4434 is merged.

@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch from edafcc3 to 567e60e Compare August 24, 2022 03:39
@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch from 567e60e to d33117e Compare August 24, 2022 06:25
@grgprarup grgprarup force-pushed the move-graph-test-to-ocis-local branch from d33117e to 07af854 Compare August 24, 2022 10:48
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@SwikritiT SwikritiT merged commit 9ceaf14 into master Aug 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the move-graph-test-to-ocis-local branch August 25, 2022 03:56
ownclouders pushed a commit that referenced this pull request Aug 25, 2022
Merge: b57bdc0 07af854
Author: Swikriti Tripathi <[email protected]>
Date:   Thu Aug 25 09:41:36 2022 +0545

    Merge pull request #4422 from owncloud/move-graph-test-to-ocis-local

    [full-ci] [tests-only] Added test for creating group with case sensitive
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.

6 participants