Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No ticket fix bugs with integration resource #220

Merged
merged 4 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
236 changes: 1 addition & 235 deletions jupiterone/cassettes/TestIntegration_Basic.yaml
Original file line number Diff line number Diff line change
@@ -1,237 +1,3 @@
---
version: 2
interactions:
- id: 0
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 801
transfer_encoding: []
trailer: {}
host: graphql.us.jupiterone.io
remote_addr: ""
request_uri: ""
body: '{"query":"\nmutation CreateIntegrationInstance ($instance: CreateIntegrationInstanceInput!) {\n\tcreateIntegrationInstance(instance: $instance) {\n\t\tid\n\t\tname\n\t\taccountId\n\t\tsourceIntegrationInstanceId\n\t\tpollingInterval\n\t\tintegrationDefinitionId\n\t\tdescription\n\t\tconfig\n\t\toffsiteComplete\n\t\tinstanceRelationship\n\t\tcollectorPoolId\n\t}\n}\n","variables":{"instance":{"name":"tf-acc-test-4853679450963121774","sourceIntegrationInstanceId":"","pollingInterval":"ONE_DAY","pollingIntervalCronExpression":{"hour":0,"dayOfWeek":0},"integrationDefinitionId":"8013680b-311a-4c2e-b53b-c8735fd97a5c","description":"Test integration","config":{"key":"value"},"offsiteComplete":false,"ingestionSourcesOverrides":null,"collectorPoolId":""}},"operationName":"CreateIntegrationInstance"}'
form: {}
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json
url: https://graphql.us.jupiterone.io/
method: POST
response:
proto: HTTP/2.0
proto_major: 2
proto_minor: 0
transfer_encoding: []
trailer: {}
content_length: 418
uncompressed: false
body: |
{"data":{"createIntegrationInstance":{"id":"38a5fb06-0882-4877-9d64-03ba1d4f0aaa","name":"tf-acc-test-4853679450963121774","accountId":"j1dev","sourceIntegrationInstanceId":"","pollingInterval":"ONE_DAY","integrationDefinitionId":"8013680b-311a-4c2e-b53b-c8735fd97a5c","description":"Test integration","config":{"key":"***masked***"},"offsiteComplete":false,"instanceRelationship":"STANDALONE","collectorPoolId":""}}}
headers:
Access-Control-Allow-Credentials:
- "true"
Content-Length:
- "418"
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: 1.086208834s
- id: 1
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 415
transfer_encoding: []
trailer: {}
host: graphql.us.jupiterone.io
remote_addr: ""
request_uri: ""
body: '{"query":"\nquery GetIntegrationInstance ($id: String!) {\n\tintegrationInstance(id: $id) {\n\t\tid\n\t\tname\n\t\taccountId\n\t\tsourceIntegrationInstanceId\n\t\tpollingInterval\n\t\tintegrationDefinitionId\n\t\tdescription\n\t\tconfig\n\t\toffsiteComplete\n\t\tinstanceRelationship\n\t\tcollectorPoolId\n\t}\n}\n","variables":{"id":"38a5fb06-0882-4877-9d64-03ba1d4f0aaa"},"operationName":"GetIntegrationInstance"}'
form: {}
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json
url: https://graphql.us.jupiterone.io/
method: POST
response:
proto: HTTP/2.0
proto_major: 2
proto_minor: 0
transfer_encoding: []
trailer: {}
content_length: 412
uncompressed: false
body: |
{"data":{"integrationInstance":{"id":"38a5fb06-0882-4877-9d64-03ba1d4f0aaa","name":"tf-acc-test-4853679450963121774","accountId":"j1dev","sourceIntegrationInstanceId":"","pollingInterval":"ONE_DAY","integrationDefinitionId":"8013680b-311a-4c2e-b53b-c8735fd97a5c","description":"Test integration","config":{"key":"***masked***"},"offsiteComplete":false,"instanceRelationship":"STANDALONE","collectorPoolId":""}}}
headers:
Access-Control-Allow-Credentials:
- "true"
Content-Length:
- "412"
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: 556.113ms
- id: 2
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 230
transfer_encoding: []
trailer: {}
host: graphql.us.jupiterone.io
remote_addr: ""
request_uri: ""
body: '{"query":"\nmutation DeleteIntegrationInstance ($id: String!) {\n\tdeleteIntegrationInstance(id: $id) {\n\t\tsuccess\n\t}\n}\n","variables":{"id":"38a5fb06-0882-4877-9d64-03ba1d4f0aaa"},"operationName":"DeleteIntegrationInstance"}'
form: {}
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json
url: https://graphql.us.jupiterone.io/
method: POST
response:
proto: HTTP/2.0
proto_major: 2
proto_minor: 0
transfer_encoding: []
trailer: {}
content_length: 56
uncompressed: false
body: |
{"data":{"deleteIntegrationInstance":{"success":true}}}
headers:
Access-Control-Allow-Credentials:
- "true"
Content-Length:
- "56"
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: 619.06675ms
interactions: []
Loading
Loading