Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-willis committed Jan 16, 2025
1 parent c36b9b6 commit bac1ba9
Show file tree
Hide file tree
Showing 8 changed files with 1,574 additions and 6 deletions.
82 changes: 80 additions & 2 deletions jupiterone/cassettes/TestResourcePermission_Basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,86 @@ interactions:
- "0"
status: 200 OK
code: 200
duration: 664.85025ms
duration: 533.467416ms
- id: 1
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 544
transfer_encoding: []
trailer: {}
host: graphql.dev.jupiterone.io
remote_addr: ""
request_uri: ""
body: '{"query":"\nquery GetResourcePermissions ($filter: GetResourcePermissionsFilter!, $cursor: String, $limit: Int) {\n\tgetResourcePermissions(filter: $filter, cursor: $cursor, limit: $limit) {\n\t\tcanCreate\n\t\tcanDelete\n\t\tcanRead\n\t\tcanUpdate\n\t\tresourceArea\n\t\tresourceId\n\t\tresourceType\n\t\tsubjectId\n\t\tsubjectType\n\t}\n}\n","variables":{"filter":{"subjectType":"group","subjectId":"example-group-id","resourceArea":"rule","resourceType":"*","resourceId":"*"},"cursor":"","limit":10},"operationName":"GetResourcePermissions"}'
form: {}
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json
url: https://graphql.dev.jupiterone.io/
method: POST
response:
proto: HTTP/2.0
proto_major: 2
proto_minor: 0
transfer_encoding: []
trailer: {}
content_length: 217
uncompressed: false
body: |
{"data":{"getResourcePermissions":[{"canCreate":true,"canDelete":true,"canRead":true,"canUpdate":true,"resourceArea":"rule","resourceId":"*","resourceType":"*","subjectId":"example-group-id","subjectType":"group"}]}}
headers:
Access-Control-Allow-Credentials:
- "true"
Content-Length:
- "217"
Content-Security-Policy:
- 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self'' https: data:;form-action ''self'';frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
Content-Type:
- application/json
Cross-Origin-Embedder-Policy:
- require-corp
Cross-Origin-Opener-Policy:
- same-origin
Cross-Origin-Resource-Policy:
- same-origin
Expect-Ct:
- max-age=0
Origin-Agent-Cluster:
- ?1
Ratelimit-Limit:
- "1000"
Ratelimit-Remaining:
- "999"
Ratelimit-Requested:
- "1"
Ratelimit-Reset:
- "1"
Referrer-Policy:
- no-referrer
Strict-Transport-Security:
- max-age=15552000; includeSubDomains
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Dns-Prefetch-Control:
- "off"
X-Download-Options:
- noopen
X-Frame-Options:
- SAMEORIGIN
X-Permitted-Cross-Domain-Policies:
- none
X-Xss-Protection:
- "0"
status: 200 OK
code: 200
duration: 450.648917ms
- id: 2
request:
proto: HTTP/1.1
proto_major: 1
Expand Down Expand Up @@ -156,4 +234,4 @@ interactions:
- "0"
status: 200 OK
code: 200
duration: 234.689667ms
duration: 482.037916ms
Loading

0 comments on commit bac1ba9

Please sign in to comment.