-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from hkad98/PSDK-138
PSDK-138 Extend CatalogUser methods with user groups manipulation Reviewed-by: Jan Soubusta https://github.com/jaceksan
- Loading branch information
Showing
6 changed files
with
497 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
gooddata-sdk/tests/catalog/fixtures/users/test_user_add_user_group.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# (C) 2023 GoodData Corporation | ||
version: 1 | ||
interactions: | ||
- request: | ||
method: GET | ||
uri: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups | ||
body: null | ||
headers: | ||
Accept: | ||
- application/vnd.gooddata.api+json | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 200 | ||
message: OK | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Expose-Headers: | ||
- Content-Disposition, Content-Length, Content-Range, Set-Cookie | ||
Cache-Control: | ||
- no-cache, no-store, max-age=0, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '447' | ||
Content-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net src.litix.io matomo.anywhere.gooddata.com | ||
code.jquery.com unpkg.com cdn.jsdelivr.net cdnjs.cloudflare.com; img-src | ||
''self'' data: blob: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net | ||
privacy-policy.truste.com www.gooddata.com; style-src ''self'' ''unsafe-inline'' | ||
fonts.googleapis.com cdn.jsdelivr.net fast.fonts.net; font-src ''self'' | ||
data: fonts.gstatic.com *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; | ||
frame-src ''self''; object-src ''none''; worker-src ''self'' blob:; child-src | ||
blob:; connect-src ''self'' *.tiles.mapbox.com *.mapbox.com *.litix.io | ||
*.wistia.com embedwistia-a.akamaihd.net matomo.anywhere.gooddata.com; | ||
media-src ''self'' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net' | ||
Content-Type: | ||
- application/vnd.gooddata.api+json | ||
Date: &id001 | ||
- PLACEHOLDER | ||
Expires: | ||
- '0' | ||
GoodData-Deployment: | ||
- aio | ||
Permission-Policy: | ||
- geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera | ||
'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment | ||
'none'; | ||
Pragma: | ||
- no-cache | ||
Referrer-Policy: | ||
- no-referrer | ||
Server: | ||
- nginx | ||
Set-Cookie: | ||
- SPRING_REDIRECT_URI=; Path=/; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 | ||
GMT; HttpOnly; SameSite=Lax | ||
Vary: | ||
- Origin | ||
- Access-Control-Request-Method | ||
- Access-Control-Request-Headers | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-GDC-TRACE-ID: *id001 | ||
X-XSS-Protection: | ||
- 1 ; mode=block | ||
body: | ||
string: | ||
data: | ||
id: demo2 | ||
type: user | ||
attributes: | ||
authenticationId: CiQ1MjI0OWQwYi1lYmI4LTQ3OWUtOGFiZi1jNzEyNmQzNWUwZTcSBWxvY2Fs | ||
relationships: | ||
userGroups: | ||
data: | ||
- id: demoGroup | ||
type: userGroup | ||
included: | ||
- id: demoGroup | ||
type: userGroup | ||
attributes: {} | ||
links: | ||
self: http://localhost:3000/api/v1/entities/userGroups/demoGroup | ||
links: | ||
self: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups |
91 changes: 91 additions & 0 deletions
91
gooddata-sdk/tests/catalog/fixtures/users/test_user_add_user_groups.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# (C) 2023 GoodData Corporation | ||
version: 1 | ||
interactions: | ||
- request: | ||
method: GET | ||
uri: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups | ||
body: null | ||
headers: | ||
Accept: | ||
- application/vnd.gooddata.api+json | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 200 | ||
message: OK | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Expose-Headers: | ||
- Content-Disposition, Content-Length, Content-Range, Set-Cookie | ||
Cache-Control: | ||
- no-cache, no-store, max-age=0, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '447' | ||
Content-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net src.litix.io matomo.anywhere.gooddata.com | ||
code.jquery.com unpkg.com cdn.jsdelivr.net cdnjs.cloudflare.com; img-src | ||
''self'' data: blob: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net | ||
privacy-policy.truste.com www.gooddata.com; style-src ''self'' ''unsafe-inline'' | ||
fonts.googleapis.com cdn.jsdelivr.net fast.fonts.net; font-src ''self'' | ||
data: fonts.gstatic.com *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; | ||
frame-src ''self''; object-src ''none''; worker-src ''self'' blob:; child-src | ||
blob:; connect-src ''self'' *.tiles.mapbox.com *.mapbox.com *.litix.io | ||
*.wistia.com embedwistia-a.akamaihd.net matomo.anywhere.gooddata.com; | ||
media-src ''self'' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net' | ||
Content-Type: | ||
- application/vnd.gooddata.api+json | ||
Date: &id001 | ||
- PLACEHOLDER | ||
Expires: | ||
- '0' | ||
GoodData-Deployment: | ||
- aio | ||
Permission-Policy: | ||
- geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera | ||
'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment | ||
'none'; | ||
Pragma: | ||
- no-cache | ||
Referrer-Policy: | ||
- no-referrer | ||
Server: | ||
- nginx | ||
Set-Cookie: | ||
- SPRING_REDIRECT_URI=; Path=/; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 | ||
GMT; HttpOnly; SameSite=Lax | ||
Vary: | ||
- Origin | ||
- Access-Control-Request-Method | ||
- Access-Control-Request-Headers | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-GDC-TRACE-ID: *id001 | ||
X-XSS-Protection: | ||
- 1 ; mode=block | ||
body: | ||
string: | ||
data: | ||
id: demo2 | ||
type: user | ||
attributes: | ||
authenticationId: CiQ1MjI0OWQwYi1lYmI4LTQ3OWUtOGFiZi1jNzEyNmQzNWUwZTcSBWxvY2Fs | ||
relationships: | ||
userGroups: | ||
data: | ||
- id: demoGroup | ||
type: userGroup | ||
included: | ||
- id: demoGroup | ||
type: userGroup | ||
attributes: {} | ||
links: | ||
self: http://localhost:3000/api/v1/entities/userGroups/demoGroup | ||
links: | ||
self: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups |
91 changes: 91 additions & 0 deletions
91
gooddata-sdk/tests/catalog/fixtures/users/test_user_remove_user_groups.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# (C) 2023 GoodData Corporation | ||
version: 1 | ||
interactions: | ||
- request: | ||
method: GET | ||
uri: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups | ||
body: null | ||
headers: | ||
Accept: | ||
- application/vnd.gooddata.api+json | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 200 | ||
message: OK | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Expose-Headers: | ||
- Content-Disposition, Content-Length, Content-Range, Set-Cookie | ||
Cache-Control: | ||
- no-cache, no-store, max-age=0, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '447' | ||
Content-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net src.litix.io matomo.anywhere.gooddata.com | ||
code.jquery.com unpkg.com cdn.jsdelivr.net cdnjs.cloudflare.com; img-src | ||
''self'' data: blob: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net | ||
privacy-policy.truste.com www.gooddata.com; style-src ''self'' ''unsafe-inline'' | ||
fonts.googleapis.com cdn.jsdelivr.net fast.fonts.net; font-src ''self'' | ||
data: fonts.gstatic.com *.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; | ||
frame-src ''self''; object-src ''none''; worker-src ''self'' blob:; child-src | ||
blob:; connect-src ''self'' *.tiles.mapbox.com *.mapbox.com *.litix.io | ||
*.wistia.com embedwistia-a.akamaihd.net matomo.anywhere.gooddata.com; | ||
media-src ''self'' blob: data: *.wistia.com *.wistia.net embedwistia-a.akamaihd.net' | ||
Content-Type: | ||
- application/vnd.gooddata.api+json | ||
Date: &id001 | ||
- PLACEHOLDER | ||
Expires: | ||
- '0' | ||
GoodData-Deployment: | ||
- aio | ||
Permission-Policy: | ||
- geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera | ||
'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment | ||
'none'; | ||
Pragma: | ||
- no-cache | ||
Referrer-Policy: | ||
- no-referrer | ||
Server: | ||
- nginx | ||
Set-Cookie: | ||
- SPRING_REDIRECT_URI=; Path=/; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 | ||
GMT; HttpOnly; SameSite=Lax | ||
Vary: | ||
- Origin | ||
- Access-Control-Request-Method | ||
- Access-Control-Request-Headers | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-GDC-TRACE-ID: *id001 | ||
X-XSS-Protection: | ||
- 1 ; mode=block | ||
body: | ||
string: | ||
data: | ||
id: demo2 | ||
type: user | ||
attributes: | ||
authenticationId: CiQ1MjI0OWQwYi1lYmI4LTQ3OWUtOGFiZi1jNzEyNmQzNWUwZTcSBWxvY2Fs | ||
relationships: | ||
userGroups: | ||
data: | ||
- id: demoGroup | ||
type: userGroup | ||
included: | ||
- id: demoGroup | ||
type: userGroup | ||
attributes: {} | ||
links: | ||
self: http://localhost:3000/api/v1/entities/userGroups/demoGroup | ||
links: | ||
self: http://localhost:3000/api/v1/entities/users/demo2?include=userGroups |
Oops, something went wrong.