From 4cf77c9400fd4afc0527f4dbd5afabaa5edb55f0 Mon Sep 17 00:00:00 2001 From: Maxime Dufour Date: Wed, 18 Oct 2023 06:56:50 +0000 Subject: [PATCH] Test all examples Signed-off-by: Maxime Dufour --- Makefile | 4 ++-- examples/node-create-volume/src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0ac6b5f5..72d3a239 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ reuse-test: docker run --rm --volume $(PWD):/data fsfe/reuse:0.11.1 lint .PHONY: examples-test -examples-test: example-web-vms example-node-volumes +examples-test: example-web-vms example-node-volumes example-node-create-volumes @echo examples are OK .PHONY: example-web-vms @@ -101,7 +101,7 @@ example-node-create-volumes: echo "npm install..."; \ npm install --local --install-links; \ echo "running node example..."; \ - node --trace-warnings ./src/index.js + node --trace-warnings ./src/index.js > /dev/null .PHONY: example-node-volumes example-node-volumes: diff --git a/examples/node-create-volume/src/index.ts b/examples/node-create-volume/src/index.ts index 0a1cff64..6d4ded90 100644 --- a/examples/node-create-volume/src/index.ts +++ b/examples/node-create-volume/src/index.ts @@ -18,7 +18,7 @@ async function createVolume(accessKey: string, secretKey: string, region: string const createParameters: osc.CreateVolumeOperationRequest = { createVolumeRequest: { - subregionName: "eu-west-2a", + subregionName: region + "a", size: 4 } };