Repository navigation
[test-only] ApiTest. get users of members of several groups - #5575
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
|
💥 Acceptance test wopiValidatorTests-ocis failed. Further test are cancelled... |
individual-it
left a comment
There was a problem hiding this comment.
This filters are so complex, we might also want to have some low level tests, just to be able to send e.g. invalid data etc.
But that is not for this PR
| "code" => "%user_id%", | ||
| "function" => | ||
| [$this, "getUserIdByUserName"], | ||
| [$this->graphContext, "getUserIdByUserName"], |
There was a problem hiding this comment.
I get error here: Fatal error: Typed property GraphContext::$featureContext must not be accessed before initialization (Behat\Testwork\Call\Exception\FatalThrowableError)
I don't understand what I need do. do you have ideas?
There was a problem hiding this comment.
I think the issue is that in getUserIdByUserName you are trying to access featureContext, but that is only initiated in the before() function of graphContext, that might not have happened at that point
fba5292 to
d494ba7
Compare
|
Kudos, SonarCloud Quality Gate passed! |
Author: Viktor Scharf <[email protected]> Date: Thu Feb 16 16:34:13 2023 +0100 [test-only] ApiTest. get users of members of several groups (#5575) * get users with group filter * fix test
Author: Viktor Scharf <[email protected]> Date: Thu Feb 16 16:34:13 2023 +0100 [test-only] ApiTest. get users of members of several groups (#5575) * get users with group filter * fix test
* get users with group filter * fix test
* get users with group filter * fix test
* get users with group filter * fix test
* get users with group filter * fix test
* get users with group filter * fix test
* get users with group filter * fix test








https://localhost:9200/graph/v1.0/users?$filter=memberOf/any(m:m/id eq 'group1UUID') and memberOf/any(m:m/id eq 'group2UUID')