-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] Adjust user roles in API acceptance tests #37377
Conversation
Codecov Report
@@ Coverage Diff @@
## master #37377 +/- ##
=========================================
Coverage 64.57% 64.57%
Complexity 19220 19220
=========================================
Files 1268 1268
Lines 75105 75105
Branches 1331 1331
=========================================
Hits 48496 48496
Misses 26217 26217
Partials 392 392
Continue to review full report at Codecov.
|
26f02fd
to
5bc1263
Compare
efdff15
to
f1816bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, but please make a PR to ocis & ocis-reva with this branch as test-runner to prove that it works there
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the display name returned by the API should be "New User" | ||
And the quota definition returned by the API should be "default" | ||
|
||
Scenario: a normal user gets their own information, providing uppercase username as authentication | ||
Given these users have been created with default attributes and skeleton files: | ||
| username | displayname | | ||
| newuser | New User | | ||
When user "NEWUSER" retrieves the information of user "newuser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The uppercase has got lost here - see issue #38014
@@ -111,9 +111,9 @@ Feature: get user | |||
@skipOnOcV10.3 | |||
Scenario: a normal user gets their own information, providing uppercase username in the URL | |||
Given these users have been created with default attributes and skeleton files: | |||
| username | displayname | | |||
| newuser | New User | | |||
When user "newuser" retrieves the information of user "NEWUSER" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The uppercase has got lost here - see issue #38014
@@ -122,19 +122,19 @@ Feature: get user | |||
@skipOnOcV10.3 | |||
Scenario: a mixed-case normal user gets their own information, providing lowercase username in the URL | |||
Given these users have been created with default attributes and skeleton files: | |||
| username | displayname | | |||
| NewUser | New User | | |||
When user "NewUser" retrieves the information of user "newuser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixed case has got lost here - see issue #38014
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the display name returned by the API should be "New User" | ||
And the quota definition returned by the API should be "default" | ||
|
||
Scenario: a mixed-case normal user gets their own information, providing the mixed-case username in the URL | ||
Given these users have been created with default attributes and skeleton files: | ||
| username | displayname | | ||
| NewUser | New User | | ||
When user "newuser" retrieves the information of user "NewUser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixed case has got lost here - see issue #38014
Then the OCS status code should be "200" | ||
And the HTTP status code should be "200" | ||
And the display name returned by the API should be "New User" | ||
And the quota definition returned by the API should be "default" | ||
|
||
Scenario: a normal user gets their own information, providing uppercase username as authentication | ||
Given these users have been created with default attributes and skeleton files: | ||
| username | displayname | | ||
| newuser | New User | | ||
When user "NEWUSER" retrieves the information of user "newuser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The uppercase has got lost here - see issue #38014
@@ -113,9 +113,9 @@ Feature: get user | |||
@skipOnOcV10.3 | |||
Scenario: a normal user gets their own information, providing uppercase username in the URL | |||
Given these users have been created with default attributes and skeleton files: | |||
| username | displayname | | |||
| newuser | New User | | |||
When user "newuser" retrieves the information of user "NEWUSER" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The uppercase has got lost here - see issue #38014
@@ -124,19 +124,19 @@ Feature: get user | |||
@skipOnOcV10.3 | |||
Scenario: a mixed-case normal user gets their own information, providing lowercase username in the URL | |||
Given these users have been created with default attributes and skeleton files: | |||
| username | displayname | | |||
| NewUser | New User | | |||
When user "NewUser" retrieves the information of user "newuser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixed case has got lost here - see issue #38014
Then the OCS status code should be "200" | ||
And the HTTP status code should be "200" | ||
And the display name returned by the API should be "New User" | ||
And the quota definition returned by the API should be "default" | ||
|
||
Scenario: a mixed-case normal user gets their own information, providing the mixed-case username in the URL | ||
Given these users have been created with default attributes and skeleton files: | ||
| username | displayname | | ||
| NewUser | New User | | ||
When user "newuser" retrieves the information of user "NewUser" using the provisioning API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixed case has got lost here - see issue #38014
Description
Adjusts acceptance test scenarios so that the "standard" usernames are used in a standard way:
user0
user0
share touser1
user
resharing touser2
...another-admin
or a subadmin usesubadmin
another-subadmin
brand-new-user
thenanother-new-user
and similar for groupsbrand-new-group
andanother-new-group
(e.g. Provisioning API tests) (names subject to change!)nonexistentuser
and for groupsnonexistentgroup
The "primary actor" in most scenarios is either
admin
oruser0
This will make it easier to choose substitute usernames (UIDs) and be confident that all the test scenarios are being run in some sensible way with the substitutions.
This PR has changes for test suites apiAuth through to apiShareManagementBasic.
Related Issue
#33596
How Has This Been Tested?
CI
Types of changes
Checklist: