diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-25 15:30:41 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-03-26 13:07:10 +0100 |
commit | 98e4ac39bc0de7dc02cc19f13f0d3b070577f249 (patch) | |
tree | f9f62d3fc63d364b7ab26372737900af0b655011 /build/integration/features/bootstrap | |
parent | cc54f718f561c73cf5e91a2a42cd8b1d878d02d2 (diff) | |
download | nextcloud-server-98e4ac39bc0de7dc02cc19f13f0d3b070577f249.tar.gz nextcloud-server-98e4ac39bc0de7dc02cc19f13f0d3b070577f249.zip |
Int tests for provisioning API scopes
Added integration tests for the scope attributes in the provisioning
API.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r-- | build/integration/features/bootstrap/Provisioning.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 0ec19f27c60..cbe11403ba8 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -157,7 +157,11 @@ trait Provisioning { $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/users/$user"; $client = new Client(); $options = []; - $options['auth'] = $this->adminUser; + if ($this->currentUser === 'admin') { + $options['auth'] = $this->adminUser; + } else { + $options['auth'] = [$this->currentUser, $this->regularUser]; + } $options['headers'] = [ 'OCS-APIREQUEST' => 'true', ]; |