insomnia/packages/insomnia-smoke-test/fixtures/smoke-test-collection.yaml
Hexxa d7a0bc1e58
feat(hidden-window): enable baseEnvironment in the pre-request scripting (#7102)
* feat(hidden-window): enable baseEnvironment in the pre-request scripting

* fix: input empty selected environment data to avoid incorrect environment manipulation and overriding

* test: add a test for folder environments overriding

* fix: smoke tests failed because of env overriding
2024-02-23 20:00:20 +08:00

302 lines
8.5 KiB
YAML

_type: export
__export_format: 4
__export_date: 2021-12-03T07:42:43.250Z
__export_source: insomnia.desktop.app:v2021.6.0
resources:
- _id: req_178f98ccc6b240f5a1f67c492b6bf9a6
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636142586648
created: 1636141100570
url: http://127.0.0.1:4010/auth/basic
name: sends request with basic authentication
description: ""
method: GET
body: {}
parameters: []
headers:
- id: pair_cbcd8bc34d494a3c83b29989d06cf005
name: Authorization
value: Basic dXNlcjpwYXNz
description: ""
disabled: true
authentication:
type: basic
useISO88591: false
disabled: false
username: user
password: pass
metaSortKey: -1636141100570
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: wrk_5b5ab67830944ffcbec47528366ef403
parentId: null
modified: 1636140994423
created: 1636140994423
name: Smoke tests
description: ""
scope: collection
_type: workspace
- _id: req_e6fab3568ed54f9d83c92e2c8006e145
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141084436
created: 1636141078600
url: http://127.0.0.1:4010/delay/seconds/20
name: delayed request
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141078600
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_e6fab3568ed54f9d83c92e2c8006e140
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141084436
created: 1636141078601
url: http://127.0.0.1:4010/file/dummy.pdf
name: sends dummy.pdf request and shows rich response
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141078601
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_e6fab3568ed54f9d83c92e2c8006e150
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141084436
created: 1636141078601
url: http://127.0.0.1:4010/events
name: connects to event stream and shows ping response
description: ""
method: GET
body: {}
parameters: []
headers:
- id: pair_4c3fe3092f1245eab6d960c633d8be8c
name: Accept
value: text/event-stream
description: ""
authentication: {}
metaSortKey: -1636141078601
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_06a660bffe724e3fac14d7d09b4a5c9b
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141067089
created: 1636141061433
url: http://127.0.0.1:4010/file/dummy.xml
name: sends dummy.xml request and shows raw response
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141061433
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_ee610ff89152476ea25950f39ca59819
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636141047337
created: 1636141038448
url: http://127.0.0.1:4010/file/dummy.csv
name: sends dummy.csv request and shows rich response
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141038448
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_89dade2ee9ee42fbb22d588783a9df3b
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636707449231
created: 1636141014552
url: http://127.0.0.1:4010/pets/1
name: send JSON request
description: ""
method: GET
body: {}
parameters: []
headers:
- id: pair_4c3fe3092f1245eab6d960c633d8be9c
name: test
value: test
description: ""
authentication: {}
metaSortKey: -1636141014552
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_89dade2ee9ee42fbb22d588783a9df3c
parentId: fld_01de564274824ecaad272330339ea6b2
modified: 1636707449231
created: 1636141014552
url: http://127.0.0.1:4010/echo
name: echo pre-request script result
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1636141014553
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: env_afc214be117853a024cce22f194c500e68dac13f
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1636140994432
created: 1636140994432
name: Base Environment
data:
customValue: "fromEnvManager"
dataPropertyOrder: null
color: null
isPrivate: false
metaSortKey: 1636140994432
_type: environment
- _id: jar_afc214be117853a024cce22f194c500e68dac13f
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1637279629638
created: 1636140994434
name: Default Jar
cookies:
- key: foo
value: bar
expires: null
domain: domain.com
path: /
creation: 2021-11-18T23:53:05.310Z
id: "429589439757017"
_type: cookie_jar
- _id: req_0769dca586df49358082b2183cfa073e
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1643892278711
created: 1643892270079
url: http://127.0.0.1:4010/cookies
name: sends request with cookie and get cookie in response
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1643892270079
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_0769dca686df49358082b2183cfa073d
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1643892278711
created: 1643892270079
url: https://localhost:4011/pets/1
name: sends request with certs
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1643892270079
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: fld_01de564274824ecaad272330339ea6b2
parentId: wrk_5b5ab67830944ffcbec47528366ef403
modified: 1668533312225
created: 1668533312225
name: FolderWithEnv
description: ""
environment:
customValue: "fromFolder"
environmentPropertyOrder: null
metaSortKey: -1668533312225
_type: request_group
- _id: req_0769dca686df49358082b2183dfa073d
parentId: fld_01de564274824ecaad272330339ea6b2
modified: 1643892278711
created: 1643892270079
url: http://127.0.0.1:4010/echo
name: sends request with pre-request script
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
preRequestScript: "insomnia.environment.set('my-pre-request-header', 'some-value');"
metaSortKey: -1643892270079
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request