-
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
use Provisioning API for user administration in UI tests #29711
Conversation
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.
If you feel like changing just 2 comment lines.
@@ -241,17 +270,39 @@ public function regularGroupsExist() { | |||
* creates a single group | |||
* | |||
* @param string $group | |||
* @param string $method how to create the user api|occ |
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.
This method creates a group
@@ -272,16 +323,38 @@ public function aRegularUserIsInARegularGroup() { | |||
* @Given the user :user is in the group :group | |||
* @param string $user | |||
* @param string $group | |||
* @param string $method how to create the user api|occ |
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.
how to add the user to the group
869c024
to
31a74f8
Compare
Codecov Report
@@ Coverage Diff @@
## master #29711 +/- ##
=========================================
Coverage 62.61% 62.61%
Complexity 17581 17581
=========================================
Files 1037 1037
Lines 57914 57914
=========================================
Hits 36263 36263
Misses 21651 21651 Continue to review full report at Codecov.
|
@individual-it test fails because it cannot create a group named "0" using the API. So either need to get the fix for that in, or skip group zero from the test. |
the tests was put in place to test #29051 |
@individual-it group 0 fix is now merged in master. Rebase this PR and it should pass. |
31a74f8
to
cac0fae
Compare
cac0fae
to
da5ac8b
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
creating/deleting and modifying users in the UI tests is done through the provisioning API and not by
occ
Motivation and Context
the main goal is to make it possible to run UI tests against a remote instance, e.g. inside docker. See also https://github.com/owncloud/qa-enterprise/pull/115
One test fails because of #29698
How Has This Been Tested?
run tests in travis
Types of changes
Checklist: