mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 06:02:00 +02:00
Simple tests for Postman and Yaak importers
This commit is contained in:
150
plugins/importer-postman/tests/fixtures/nested.json
vendored
150
plugins/importer-postman/tests/fixtures/nested.json
vendored
@@ -7,158 +7,32 @@
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "New Folder",
|
||||
"name": "Top Folder",
|
||||
"item": [
|
||||
{
|
||||
"name": "FOlder 2",
|
||||
"name": "Nested Folder",
|
||||
"item": [
|
||||
{
|
||||
"name": "Basic Auth",
|
||||
"name": "Request 1",
|
||||
"request": {
|
||||
"auth": {
|
||||
"type": "basic",
|
||||
"basic": {
|
||||
"password": "pass",
|
||||
"username": "user"
|
||||
}
|
||||
},
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "https://schier.co"
|
||||
},
|
||||
"response": []
|
||||
"method": "GET"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Form Data",
|
||||
"name": "Request 2",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-foo",
|
||||
"value": "bar",
|
||||
"description": "description",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Disabled",
|
||||
"value": "tnroant",
|
||||
"description": "ntisorantosra",
|
||||
"type": "text",
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "Form",
|
||||
"value": "Value",
|
||||
"description": "descirption",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Disabled",
|
||||
"value": "foo",
|
||||
"description": "bar",
|
||||
"type": "text",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "file",
|
||||
"type": "file",
|
||||
"src": "/Users/gschier/Desktop/foo.json"
|
||||
},
|
||||
{
|
||||
"key": "Rendered",
|
||||
"value": "{{Foo}}",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "schier.co?firstkey=firstvalue&hi=there",
|
||||
"host": [
|
||||
"schier",
|
||||
"co"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "disabled",
|
||||
"value": "secondvalue",
|
||||
"description": "this is disabled",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "firstkey",
|
||||
"value": "firstvalue"
|
||||
},
|
||||
{
|
||||
"key": "hi",
|
||||
"value": "there"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
"method": "GET"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Form URL",
|
||||
"name": "Request 3",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-foo",
|
||||
"value": "bar",
|
||||
"description": "description",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Disabled",
|
||||
"value": "tnroant",
|
||||
"description": "ntisorantosra",
|
||||
"type": "text",
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "urlencoded",
|
||||
"urlencoded": [
|
||||
{
|
||||
"key": "foo",
|
||||
"value": "bar",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "schier.co?firstkey=firstvalue&hi=there",
|
||||
"host": [
|
||||
"schier",
|
||||
"co"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "disabled",
|
||||
"value": "secondvalue",
|
||||
"description": "this is disabled",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "firstkey",
|
||||
"value": "firstvalue"
|
||||
},
|
||||
{
|
||||
"key": "hi",
|
||||
"value": "there"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
"method": "GET"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user