Skip to content

Commit 0a223c3

Browse files
committed
skipping from rest
1 parent 0d7b12b commit 0a223c3

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

codegens/powershell-restmethod/test/newman/newman.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Powershell Restmethod Converter', function () {
1616
// Poweshell does not support headers with duplicate keys
1717
// If a Post request has no body then powershell will still send
1818
// an empty string as body, which is not what is expected in newman tests
19-
skipCollections: ['sameNameHeadersCollection', 'emptyFormdataCollection']
19+
skipCollections: ['sameNameHeadersCollection', 'emptyFormdataCollection', 'unsupportedMethods']
2020
};
2121
runNewmanTest(convert, options, testConfig);
2222
});

codegens/python-http.client/test/newman/newman.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Convert for different types of request', function () {
1313
testConfig = {
1414
fileName: 'codesnippet.py',
1515
runScript: 'PYTHONIOENCODING=utf-8 python3 codesnippet.py',
16-
skipCollections: ['redirectCollection', 'sameNameHeadersCollection']
16+
skipCollections: ['redirectCollection', 'sameNameHeadersCollection', 'unsupportedMethods']
1717
};
1818
runNewmanTest(convert, options, testConfig);
1919
});

codegens/python-requests/test/newman/newman.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Convert for different types of request', function () {
1414
// Requests does not support multipart/form-data unless we are also
1515
// uploading a file. Headers are stored in a dict so we cannot have
1616
// two headers with same key
17-
skipCollections: ['formdataCollection', 'sameNameHeadersCollection']
17+
skipCollections: ['formdataCollection', 'sameNameHeadersCollection', 'unsupportedMethods']
1818
};
1919
runNewmanTest(convert, options, testConfig);
2020
});
@@ -31,7 +31,7 @@ describe('Convert for different types of request', function () {
3131
// Requests does not support multipart/form-data unless we are also
3232
// uploading a file. Headers are stored in a dict so we cannot have
3333
// two headers with same key
34-
skipCollections: ['formdataCollection', 'sameNameHeadersCollection']
34+
skipCollections: ['formdataCollection', 'sameNameHeadersCollection', 'unsupportedMethods']
3535
};
3636
runNewmanTest(convert, options, testConfig);
3737

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']
16+
skipCollections: ['redirectCollection', 'unsupportedMethods']
1717
};
1818
runNewmanTest(convert, options, testConfig);
1919
});

codegens/ruby/test/newman/newman.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Convert for different types of request', function () {
1010
fileName: 'codesnippet.rb',
1111
runScript: 'ruby codesnippet.rb',
1212
compileScript: null,
13-
skipCollections: ['redirectCollection']
13+
skipCollections: ['redirectCollection', 'unsupportedMethods']
1414
};
1515

1616
runNewmanTest(convert, options, testConfig);

codegens/shell-wget/test/newman/newman.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ describe('Convert for different types of request', function () {
88
},
99
testConfig = {
1010
footerSnippet: ' -qO-', // Added this to get the response in stdout instead of saving in file.
11-
skipCollections: ['formdataCollection', 'sameNameHeadersCollection', 'formdataFileCollection']
11+
skipCollections: ['formdataCollection', 'sameNameHeadersCollection', 'formdataFileCollection',
12+
'unsupportedMethods']
1213
};
1314
runNewmanTest(convert, options, testConfig);
1415
});

codegens/swift/test/newman/newman.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe.skip('Convert for different types of request', function () {
1010
testConfig = {
1111
fileName: 'snippet.swift',
1212
runScript: 'swift-5.3-RELEASE-ubuntu16.04/usr/bin/swift snippet.swift',
13-
skipCollections: ['sameNameHeadersCollection']
13+
skipCollections: ['sameNameHeadersCollection', 'unsupportedMethods']
1414
};
1515
runNewmanTest(convert, options, testConfig);
1616
});

0 commit comments

Comments
 (0)