-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
575 additions
and
11 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
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
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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
gooddata-sdk/tests/catalog/expected/declarative_organization_permissions.json
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,16 @@ | ||
[ | ||
{ | ||
"assignee": { | ||
"id": "adminGroup", | ||
"type": "userGroup" | ||
}, | ||
"name": "MANAGE" | ||
}, | ||
{ | ||
"assignee": { | ||
"id": "adminGroup", | ||
"type": "userGroup" | ||
}, | ||
"name": "SELF_CREATE_TOKEN" | ||
} | ||
] |
162 changes: 162 additions & 0 deletions
162
gooddata-sdk/tests/catalog/fixtures/permissions/manage_organization_permissions.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,162 @@ | ||
# (C) 2023 GoodData Corporation | ||
version: 1 | ||
interactions: | ||
- request: | ||
method: POST | ||
uri: http://localhost:3000/api/v1/actions/organization/managePermissions | ||
body: | ||
- assigneeIdentifier: | ||
id: adminGroup | ||
type: userGroup | ||
permissions: | ||
- MANAGE | ||
- SELF_CREATE_TOKEN | ||
headers: | ||
Accept-Encoding: | ||
- br, gzip, deflate | ||
Content-Type: | ||
- application/json | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 204 | ||
message: No Content | ||
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-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com | ||
src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdn.jsdelivr.net | ||
cdnjs.cloudflare.com; img-src ''self'' data: blob: *.wistia.com *.wistia.net | ||
*.hsforms.net *.hsforms.com 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'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src | ||
''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com | ||
*.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net | ||
matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com | ||
*.wistia.net embedwistia-a.akamaihd.net' | ||
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: '' | ||
- request: | ||
method: GET | ||
uri: http://localhost:3000/api/v1/layout/organization/permissions | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- br, gzip, deflate | ||
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-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com | ||
src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdn.jsdelivr.net | ||
cdnjs.cloudflare.com; img-src ''self'' data: blob: *.wistia.com *.wistia.net | ||
*.hsforms.net *.hsforms.com 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'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src | ||
''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com | ||
*.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.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/json | ||
DATE: *id001 | ||
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 | ||
Transfer-Encoding: | ||
- chunked | ||
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 | ||
content-length: | ||
- '113' | ||
body: | ||
string: | ||
- assignee: | ||
id: adminGroup | ||
type: userGroup | ||
name: MANAGE | ||
- assignee: | ||
id: adminGroup | ||
type: userGroup | ||
name: SELF_CREATE_TOKEN |
Oops, something went wrong.