-
Notifications
You must be signed in to change notification settings - Fork 368
Bump postman-collection to 5.0.0 #788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
VShingala
merged 17 commits into
postmanlabs:develop
from
parthverma1:feature/bump-postman-collection-v5
Mar 10, 2025
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c32f341
chore: Bump postman-collection to v5 and drop support for node < 18
parthverma1 d16be64
chore: Update repository tests
parthverma1 89e8d14
chore: Update js fetch test dependency
parthverma1 6389566
chore: Added trace deprecation option for debugging test failures
parthverma1 3dbffe1
chore: Fixed node-fetch versioning for js-fetch tests
parthverma1 ed7f9be
chore: Fixed axios versioning for node-axios tests
parthverma1 379c58e
chore: Gave up on supporting Node v22 due node js request dependency …
parthverma1 ac2ddc3
chore: Add individual run for each language
parthverma1 d83ed50
fix: Workflow file to run tests for individual packages
parthverma1 31d2912
fix: Added .eslintignore to ignore shell files
parthverma1 4eef7e8
chore: Set max parallel runs to 10
parthverma1 f63de4e
chore: Disabled fail fast to run all tests to completion
parthverma1 e3c2806
fix: Failing builds for R and httpie
parthverma1 9763317
chore: PR Clean up
parthverma1 cfd487f
chore: Update postman-collection version for codegens
parthverma1 4c62aeb
chore: Add sudo to all ci dependencies install script
parthverma1 253c430
Revert "chore: Add sudo to all ci dependencies install script"
parthverma1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| **/ci-install.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| sudo apt-get update | ||
| echo "Installing dependencies required for tests in codegens/csharp-httpclient" | ||
| # Install latest .net6.0 sdk | ||
| pushd ./codegens/csharp-httpclient &>/dev/null; | ||
| wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| sudo dpkg -i packages-microsoft-prod.deb | ||
| sudo apt-get install apt-transport-https | ||
| sudo apt-get update | ||
| sudo apt-get install dotnet-sdk-6.0 | ||
| dotnet new console -o testProject -f net6.0 | ||
| # no extra packages needed | ||
| popd &>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| sudo apt-get update | ||
| echo "Installing dependencies required for tests in codegens/csharp-restsharp" | ||
| pushd ./codegens/csharp-restsharp &>/dev/null; | ||
| wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| sudo dpkg -i packages-microsoft-prod.deb | ||
| sudo apt-get install apt-transport-https | ||
| sudo apt-get update | ||
| sudo apt-get install dotnet-sdk-6.0 | ||
| dotnet new console -o testProject -f net6.0 | ||
| pushd ./testProject &>/dev/null; | ||
| dotnet add package RestSharp --version 112.0.0 | ||
| popd &>/dev/null; | ||
| popd &>/dev/null; | ||
|
|
||
| sudo apt-get install -y mono-complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing curl" | ||
| sudo apt-get install -y curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/dart-dio" | ||
| pushd ./codegens/dart-dio &>/dev/null; | ||
| wget -q https://storage.googleapis.com/dart-archive/channels/stable/release/3.0.4/linux_packages/dart_3.0.4-1_amd64.deb | ||
| sudo dpkg -i dart_3.0.4-1_amd64.deb | ||
| echo '''name: test | ||
| version: 1.0.0 | ||
| environment: | ||
| sdk: ^3.0.3 | ||
| dependencies: | ||
| dio: ^5.2.0 | ||
| ''' > pubspec.yaml | ||
| dart pub get | ||
| popd &>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/dart-http" | ||
| pushd ./codegens/dart-http &>/dev/null; | ||
| wget -q https://storage.googleapis.com/dart-archive/channels/stable/release/3.0.4/linux_packages/dart_3.0.4-1_amd64.deb | ||
| sudo dpkg -i dart_3.0.4-1_amd64.deb | ||
| echo '''name: test | ||
| version: 1.0.0 | ||
| environment: | ||
| sdk: ^3.0.3 | ||
| dependencies: | ||
| http: ^1.0.0 | ||
| ''' > pubspec.yaml | ||
| dart pub get | ||
| popd &>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/java-okhttp" | ||
| pushd ./codegens/java-okhttp &>/dev/null; | ||
| sudo add-apt-repository ppa:openjdk-r/ppa -y | ||
| sudo rm -rf /var/lib/apt/lists/* | ||
| sudo apt-get update | ||
| sudo apt-get install -y openjdk-8-jdk | ||
| unzip test/unit/fixtures/dependencies.zip | ||
| popd &>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/java-unirest" | ||
| pushd ./codegens/java-unirest &>/dev/null; | ||
| unzip test/unit/fixtures/dependencies.zip | ||
| popd &>/dev/null; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,8 +28,9 @@ | |
| "homepage": "https://github.com/postmanlabs/code-generators/tree/master/codegens/js-fetch", | ||
| "dependencies": {}, | ||
| "devDependencies": { | ||
| "form-data": "2.5.1", | ||
| "node-fetch": "2.6.7" | ||
| "formdata-node": "6.0.3", | ||
| "node-fetch2": "npm:[email protected]", | ||
| "node-fetch": "3.3.2" | ||
| }, | ||
| "engines": { | ||
| "node": ">=8" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,33 @@ | ||
| var runNewmanTest = require('../../../../test/codegen/newman/newmanTestUtil').runNewmanTest, | ||
| convert = require('../../lib/index').convert; | ||
| convert = require('../../lib/index').convert, | ||
| NODE_VERSION = process.versions.node.split('.')[0]; | ||
|
|
||
| describe('Convert for different types of request', function () { | ||
| var testSnippet = 'var fetch = require(\'node-fetch\'),\nFormData = require(\'form-data\'),\n', | ||
| testConfig = { | ||
| var testConfig = { | ||
| compileScript: null, | ||
| runScript: 'node snippet.js', | ||
| fileName: 'snippet.js', | ||
| skipCollections: ['formdataFileCollection'] | ||
| }, | ||
| options = { | ||
| multiLine: true | ||
| }; | ||
| testSnippet += 'Headers = require(\'node-fetch\').Headers,\n'; | ||
| testSnippet += 'URLSearchParams = require(\'url\').URLSearchParams;\n\n'; | ||
| }, | ||
| testSnippet; | ||
|
|
||
| if (NODE_VERSION < 21) { | ||
| testSnippet = 'var fetch = require(\'node-fetch2\');\n'; | ||
| } | ||
| else { | ||
| testSnippet = 'var fetch = (...args) => import(\'node-fetch\').then(({default: fetch}) => fetch(...args));'; | ||
| } | ||
|
|
||
| if (NODE_VERSION < 21) { | ||
| // Newer node versions ship with built-in FormData, Headers and URLSearchParams class | ||
| testSnippet += '\nvar FormData = require(\'formdata-node\').FormData,\n'; | ||
| testSnippet += 'Headers = require(\'node-fetch2\').Headers,\n'; | ||
| testSnippet += 'URLSearchParams = require(\'url\').URLSearchParams;\n\n'; | ||
| } | ||
|
|
||
| testConfig.headerSnippet = testSnippet; | ||
| runNewmanTest(convert, options, testConfig); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/kotlin-okhttp" | ||
| pushd ./codegens/kotlin-okhttp &>/dev/null; | ||
| sudo add-apt-repository ppa:openjdk-r/ppa -y | ||
| sudo rm -rf /var/lib/apt/lists/* | ||
| sudo apt-get update | ||
| sudo apt-get install -y openjdk-8-jdk | ||
| sudo snap install --classic kotlin | ||
| unzip test/unit/fixtures/dependencies.zip | ||
| popd &>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| sudo apt-get update | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/libcurl" | ||
| sudo apt-get install libcurl4-gnutls-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/php-guzzle" | ||
| php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
| php composer-setup.php | ||
| php -r "unlink('composer-setup.php');" | ||
| sudo mv composer.phar /usr/bin/composer | ||
| composer global require guzzlehttp/guzzle:7.4.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/php-httprequest2" | ||
| pear install HTTP_Request2-2.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing Powershell" | ||
| sudo apt-get install powershell -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/r-httr" | ||
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
| sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' | ||
| sudo apt-get update | ||
| sudo apt-get install r-base libcurl4-gnutls-dev | ||
| sudo R --vanilla -e 'install.packages("httr", version="1.4.2", repos="http://cran.us.r-project.org")' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing dependencies required for tests in codegens/r-httr" | ||
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
| sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' | ||
| sudo apt-get update | ||
| sudo apt-get install r-base libcurl4-gnutls-dev | ||
| sudo R --vanilla -e 'install.packages("RCurl", version="1.98.1.6", repos="http://cran.us.r-project.org")' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/bash | ||
| set -ev; # stop on error | ||
|
|
||
| echo "Installing Rust" | ||
| sudo apt-get install -y build-essential pkg-config libssl-dev | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
| pushd ./codegens/rust-reqwest &>/dev/null; | ||
| echo '''[package] | ||
| name = "rust_reqwest_codegen" | ||
| version = "0.0.1" | ||
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
| reqwest = { version = "0.11.14", features = ["json", "multipart"] } | ||
| tokio = { version = "1.26.0", features = ["full"] } | ||
| serde_json = { version = "1.0.94" }''' > Cargo.toml | ||
| mkdir src && echo '''fn main() { | ||
| println!("Hello, world!"); | ||
| }''' > src/main.rs | ||
| cargo build | ||
| popd &>/dev/null; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.