insomnia/packages/insomnia-smoke-test/fixtures/unit-test.yaml
Filipe Freire 943c28cc12
[INS-2082] Add prerelease tests for Design interactions (#5415)
* initial commit

* Add prerelease tests for Unit Test feature

* Add test to import oa3 spec into design doc
2022-11-22 11:32:05 +00:00

115 lines
3.3 KiB
YAML

_type: export
__export_format: 4
__export_date: 2022-11-21T14:14:03.301Z
__export_source: insomnia.desktop.app:v2022.7.0-beta.5
resources:
- _id: req_c54dc17f938c4b018c0e0f1f64e0ad73
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039727273
created: 1669039715014
url: localhost:4010/not-found
name: request B
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1669039715014
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: wrk_2863ca2fd18d40efac9fe80a23c7533b
parentId: null
modified: 1669039672707
created: 1669039672707
name: unit-test.yaml
description: ""
scope: design
_type: workspace
- _id: req_17ca8bbd46374144a089f891e32842d6
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039709867
created: 1669039678415
url: localhost:4010
name: request A
description: ""
method: GET
body:
mimeType: application/json
text: |-
{
"test": 123
}
parameters: []
headers:
- name: Content-Type
value: application/json
authentication: {}
metaSortKey: -1669039678415
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: env_b01fdb83e35f3937f7d22870371ebdee5c15f190
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039672710
created: 1669039672710
name: Base Environment
data: {}
dataPropertyOrder: null
color: null
isPrivate: false
metaSortKey: 1669039672710
_type: environment
- _id: jar_b01fdb83e35f3937f7d22870371ebdee5c15f190
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039672710
created: 1669039672710
name: Default Jar
cookies: []
_type: cookie_jar
- _id: spc_556f1031c81a4e7c998ea93d89781416
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039672707
created: 1669039672707
fileName: unit-test.yaml
contents: ""
contentType: yaml
_type: api_spec
- _id: uts_d950d2775c194d66b0339bf01435a965
parentId: wrk_2863ca2fd18d40efac9fe80a23c7533b
modified: 1669039741641
created: 1669039741641
name: Existing Test Suite
_type: unit_test_suite
- _id: ut_20534ebe980c46228c25b665422263ea
parentId: uts_d950d2775c194d66b0339bf01435a965
modified: 1669039779620
created: 1669039749000
requestId: req_17ca8bbd46374144a089f891e32842d6
name: Request A is found
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(200);
_type: unit_test
- _id: ut_38716a279d4945de952d74cd9d2012b6
parentId: uts_d950d2775c194d66b0339bf01435a965
modified: 1669039788840
created: 1669039754892
requestId: req_c54dc17f938c4b018c0e0f1f64e0ad73
name: Request B is not found
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(404);
_type: unit_test