Skip to content
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

Advanced collection #47

Merged
merged 49 commits into from
Oct 16, 2023
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7e7b693
Implemented Collection header update
barduinor Sep 19, 2023
12a84c4
Unable to sort folders
barduinor Sep 19, 2023
073fc47
Detect folder sort changes to deploy collection header + check reques…
barduinor Sep 19, 2023
85d5b5c
Deploy advanced collection
barduinor Sep 19, 2023
b3cf6ab
remove dependency on classic collections for the deploy of the advanc…
barduinor Sep 19, 2023
bf8be43
fix deploy issue where git hub repo was not being found
barduinor Sep 19, 2023
5ccb9ed
Merge branch 'main' into advanced_collection
barduinor Sep 19, 2023
8507960
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 19, 2023
93d7155
Merge branch 'advanced_collection' of github.com:box/box-postman into…
barduinor Sep 19, 2023
4a13aab
fix deploy issue where build was failing
barduinor Sep 19, 2023
351d86d
fix deploy issue env vars incorrect
barduinor Sep 19, 2023
61f721d
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 19, 2023
e0c02a5
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 19, 2023
b37504f
created separete deployAdvance git workflow
barduinor Sep 19, 2023
60b418a
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 19, 2023
0c63d3a
created separete deployAdvance git workflow
barduinor Sep 19, 2023
e64dc2f
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 20, 2023
b19fc8f
replace environment name by environment type
barduinor Sep 20, 2023
20ce840
replace environment name by environment type
barduinor Sep 20, 2023
2222699
update pre-script to read the RSASign lib from the environment variable
barduinor Sep 20, 2023
a39824d
added lib JsRSASign as resource file
barduinor Sep 20, 2023
685964d
improved pre-script execution conditions to not execute outside of no…
barduinor Sep 20, 2023
1a38837
fix lint
barduinor Sep 20, 2023
8aebea8
WIP: adding the new util object to the collection deployment
barduinor Sep 20, 2023
c2c4277
WIP: implemented deploymen of utilities folder and sub folders
barduinor Sep 21, 2023
27f29e2
WIP: added auth api key and oauth 2 to create env and auth helper fol…
barduinor Sep 21, 2023
53b2ffc
WIP: added get workspace method
barduinor Sep 21, 2023
fc6a9b8
WIP: refactor search for folders, requests and responses
barduinor Sep 21, 2023
3aba445
added utilities requests to create and test environments
barduinor Sep 21, 2023
cf1c90a
fix typo in request param
barduinor Sep 21, 2023
a450884
merge from main
barduinor Sep 21, 2023
2c6eada
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 21, 2023
1df93ab
fix rsa lib not being added to the collection as a variable
barduinor Sep 27, 2023
5d04e99
updated pr-req script to handle \n in the private key
barduinor Sep 27, 2023
87099ed
adjusted test not to include the extra environment variable
barduinor Sep 27, 2023
0ed0e60
adjusted pre-req script to remove an extra console.log
barduinor Sep 27, 2023
4bb2350
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 27, 2023
5175033
adjusted utils methods and description to be more friendly
barduinor Sep 27, 2023
91c1aa1
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 27, 2023
42987a7
added the advanced collection to the read me
barduinor Sep 27, 2023
2cb3ce1
fixed missing params in url in create JWT and CCG environment
barduinor Sep 27, 2023
e0b9210
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 27, 2023
8c66df6
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Sep 27, 2023
afba2d3
fixed colision in object id + empty remote collection handling
barduinor Oct 5, 2023
13b4fc4
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Oct 5, 2023
188ec03
activating JP advanced collection deployment
barduinor Oct 11, 2023
3c681a1
updating readme and env sample
barduinor Oct 11, 2023
5eaad2c
Merge branch 'main' of github.com:box/box-postman into advanced_colle…
barduinor Oct 11, 2023
8a30b4e
potman api, increase timeout from 10 to 60 seconds
barduinor Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/postmanAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Collection {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 10000,
timeout: 1000 * 60, // 60 seconds
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -58,7 +58,7 @@ class Folder {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 10000,
timeout: 1000 * 60, // 60 seconds
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -120,7 +120,7 @@ class Request {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 10000,
timeout: 1000 * 60, // 60 seconds
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down Expand Up @@ -183,7 +183,7 @@ class Response {
this.collectionId = collectionId
this.apiKey = process.env.POSTMAN_API_KEY
this.axios = axios.create({
timeout: 10000,
timeout: 1000 * 60, // 60 seconds
headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey }
})
}
Expand Down