stellio-hub / stellio-context-broker

Stellio is an NGSI-LD compatible context broker
https://stellio.readthedocs.io
Apache License 2.0
27 stars 10 forks source link

feat(authz): introduce an owner relationship when creating an entity #1151

Closed bobeal closed 4 months ago

github-actions[bot] commented 5 months ago

Test Results

   57 files  + 33     57 suites  +33   1m 21s :stopwatch: +45s   968 tests +637    968 :white_check_mark: +637  0 :zzz: ±0  0 :x: ±0  1 007 runs  +676  1 007 :white_check_mark: +676  0 :zzz: ±0  0 :x: ±0 

Results for commit 70e5d5e5. ± Comparison against base commit 0023f9fb.

This pull request removes 12 and adds 641 tests. Note that renamed tests count towards both. ``` "lang": "@none" "lang": "fr" "lang": "nl" "type": "Property", "value": "Big Place", "value": "Grand Place", "value": "Grote Markt", com.egm.stellio.shared.model.LanguageFilterTests ‑ [1] nl, "languageProperty": { com.egm.stellio.shared.model.LanguageFilterTests ‑ [2] en, "languageProperty": { com.egm.stellio.shared.model.LanguageFilterTests ‑ [3] *, "languageProperty": { … ``` ``` com.egm.stellio.search.authorization.AuthorizationServiceTests ‑ get authorized entities should return a count of -1 if authentication is not enabled() com.egm.stellio.search.authorization.AuthorizationServiceTests ‑ get groups memberships should return a count of -1 if authentication is not enabled() com.egm.stellio.search.authorization.AuthorizationServiceTests ‑ get users should return a count of -1 if authentication is not enabled() com.egm.stellio.search.authorization.AuthorizationServiceTests ‑ it should authorize access to read() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should allow an user that has the right to admin an entity() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should allow an user that has the right to read an entity() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should allow an user that has the right to update an entity() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should create owner link for a set of entities() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should return a null filter is user has the stellio-admin role() com.egm.stellio.search.authorization.EnabledAuthorizationServiceTests ‑ it should return a valid entity filter if user does not have the stellio-admin role() … ```

:recycle: This comment has been updated with latest results.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
83.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud