Skip to content

Commit e6ed70c

Browse files
committed
Skip raw body test for r-httr
1 parent 5a64ca4 commit e6ed70c

File tree

3 files changed

+40
-30
lines changed

3 files changed

+40
-30
lines changed

codegens/r-httr/test/newman/newman.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('r-httr Converter', function () {
1313
fileName: 'snippet.r',
1414
// Run script required to run the generated code snippet
1515
runScript: 'Rscript snippet.r',
16-
skipCollections: ['redirectCollection', 'unsupportedMethods']
16+
skipCollections: ['redirectCollection', 'unsupportedMethods', 'rawBody']
1717
};
1818
runNewmanTest(convert, options, testConfig);
1919
});

test/codegen/newman/fixtures/basicCollection.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,6 @@
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
77
},
88
"item": [
9-
{
10-
"name": "POST raw with quoted text",
11-
"event": [],
12-
"request": {
13-
"method": "POST",
14-
"header": [
15-
{
16-
"key": "Content-Type",
17-
"value": "application/json"
18-
}
19-
],
20-
"body": {
21-
"mode": "raw",
22-
"raw": "{\n \"Hello\": \"{\\\"hello_world\\\": true}\"\n}"
23-
},
24-
"url": {
25-
"raw": "https://postman-echo.com/post",
26-
"protocol": "https",
27-
"host": [
28-
"postman-echo",
29-
"com"
30-
],
31-
"path": [
32-
"post"
33-
]
34-
}
35-
},
36-
"response": []
37-
},
389
{
3910
"name": "Request Headers (With special Characters)",
4011
"event": [
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"info": {
3+
"_postman_id": "f52ee07d-6345-4220-89af-e6696b3c0122",
4+
"name": "Basic Collection",
5+
"description": "This collection contains requests that will be used to test validity of plugin created to convert postman request into code snippet of particular language.",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "POST raw with quoted text",
11+
"event": [],
12+
"request": {
13+
"method": "POST",
14+
"header": [
15+
{
16+
"key": "Content-Type",
17+
"value": "application/json"
18+
}
19+
],
20+
"body": {
21+
"mode": "raw",
22+
"raw": "{\n \"Hello\": \"{\\\"hello_world\\\": true}\"\n}"
23+
},
24+
"url": {
25+
"raw": "https://postman-echo.com/post",
26+
"protocol": "https",
27+
"host": [
28+
"postman-echo",
29+
"com"
30+
],
31+
"path": [
32+
"post"
33+
]
34+
}
35+
},
36+
"response": []
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)