Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions azure/azure-pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ extends:
service_name: ${{ variables.service_name }}
service_base_path: ${{ variables.service_base_path }}
short_service_name: ${{ variables.short_service_name }}
product_display_name: ${{ variables.product_display_name }}
product_description: ${{ variables.product_description }}
apigee_deployments:
- environment: internal-dev
post_deploy:
Expand Down
2 changes: 0 additions & 2 deletions azure/azure-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ extends:
service_name: ${{ variables.service_name }}
short_service_name: ${{ variables.short_service_name }}
service_base_path: ${{ variables.service_base_path }}
product_display_name: ${{ variables.product_display_name }}
product_description: ${{ variables.product_description }}
enable_monitoring: true
enable_status_monitoring: true
apigee_deployments:
Expand Down
2 changes: 1 addition & 1 deletion docker/_shared/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ clean:
rm -rf ./node_modules

install:
npm install --include=dev
npm install --include=dev --legacy-peer-deps

update:
npm update
Expand Down
6 changes: 6 additions & 0 deletions docker/async-slowapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docker/sync-wrap/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docker/sync-wrap/src/app.postman.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ describe("express with postman-echo", function () {
.get("/delay/3")
.set("x-sync-wait", "eek")
.set("Accept", "application/json")
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 29"}, done);
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 59"}, done);
});

it("it validates x-sync-wait is > lower bound", (done) => {
request(server)
.get("/delay/3")
.set("x-sync-wait", "0.0001")
.set("Accept", "application/json")
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 29"}, done);
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 59"}, done);
});

it("it validates x-sync-wait is < upper bound", (done) => {
request(server)
.get("/delay/3")
.set("x-sync-wait", "30")
.set("x-sync-wait", "60")
.set("Accept", "application/json")
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 29"}, done);
.expect(400, {err: "x-sync-wait should be a number between 0.25 and 59"}, done);
});

it("it times out if x-sync-wait shorter than initial response", (done) => {
Expand Down
6 changes: 3 additions & 3 deletions docker/sync-wrap/src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,16 +335,16 @@ async function proxy(req, res, next) {
if(isNaN(syncWait)){
res.status(400);
res.json({
err: "x-sync-wait should be a number between 0.25 and 29"
err: "x-sync-wait should be a number between 0.25 and 59"
});
next();
return;
}
syncWait = parseFloat(syncWait);
if (syncWait < 0.25 || syncWait > 29) {
if (syncWait < 0.25 || syncWait > 59) {
res.status(400);
res.json({
err: "x-sync-wait should be a number between 0.25 and 29"
err: "x-sync-wait should be a number between 0.25 and 59"
});
next();
return;
Expand Down
3 changes: 3 additions & 0 deletions proxies/live/apiproxy/targets/apim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
<PreFlow/>
<HTTPTargetConnection>
{{ HOSTED_TARGET_CONNECTION }}
<Properties>
<Property name="io.timeout.millis">65000</Property>
</Properties>
</HTTPTargetConnection>
</TargetEndpoint>