diff --git a/dist/kv_read/package.json b/dist/kv_read/package.json index c1df896..fadbbe8 100644 --- a/dist/kv_read/package.json +++ b/dist/kv_read/package.json @@ -2,7 +2,7 @@ "name": "VaultReadKV", "dependencies": { "axios": "0.21.1", - "azure-pipelines-task-lib": "3.1.10" + "azure-pipelines-task-lib": "4.17.3" }, "engines": { "node": ">=6" diff --git a/dist/kv_read/task.json b/dist/kv_read/task.json index ab79d78..7502419 100644 --- a/dist/kv_read/task.json +++ b/dist/kv_read/task.json @@ -12,7 +12,7 @@ "author": "Fizcko", "version": { "Major": 5, - "Minor": 1, + "Minor": 2, "Patch": 0 }, "instanceNameFormat": "Vault - Read KV secrets", @@ -330,6 +330,16 @@ "target": "kv_read.js", "argumentFormat": "", "workingDirectory": "" - } + }, + "Node16": { + "target": "kv_read.js", + "argumentFormat": "", + "workingDirectory": "" + }, + "Node20_1": { + "target": "kv_read.js", + "argumentFormat": "", + "workingDirectory": "" + } } } diff --git a/dist/tool_create_file/package.json b/dist/tool_create_file/package.json index db906b0..b25fca0 100644 --- a/dist/tool_create_file/package.json +++ b/dist/tool_create_file/package.json @@ -1,7 +1,7 @@ { "name": "CreateFile", "dependencies": { - "azure-pipelines-task-lib": "3.1.10" + "azure-pipelines-task-lib": "4.17.3" }, "engines": { "node": ">=6" diff --git a/dist/tool_create_file/task.json b/dist/tool_create_file/task.json index 9dd4239..0d9d5c3 100644 --- a/dist/tool_create_file/task.json +++ b/dist/tool_create_file/task.json @@ -12,7 +12,7 @@ "author": "Fizcko", "version": { "Major": 5, - "Minor": 1, + "Minor": 2, "Patch": 0 }, "instanceNameFormat": "Tool - Create a File", @@ -113,6 +113,12 @@ "execution": { "Node10": { "target": "tool_create_file.js" - } + }, + "Node16": { + "target": "tool_create_file.js" + }, + "Node20_1": { + "target": "tool_create_file.js" + } } } diff --git a/overview.md b/overview.md index 678039f..4efda98 100644 --- a/overview.md +++ b/overview.md @@ -140,6 +140,9 @@ Parameters : ## Release note +### v5.2.0 +- Add execution for node 16 & node 20 + ### v5.1.0 - Add the possibility to export Services Connection settings as output variables. Check [Use output variables from the Service Connection](#Use-output-variables-from-the-Service-Connection) for more details. diff --git a/package.json b/package.json index 2386c52..7c1aa9c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "mocha ./test/run_all.js" }, "dependencies": { - "azure-pipelines-task-lib": "3.1.10", + "azure-pipelines-task-lib": "4.17.3", "typescript": "4.1.5" }, "devDependencies": { diff --git a/test/conf.json b/test/conf.json index 9a3fdb6..eb1a80a 100644 --- a/test/conf.json +++ b/test/conf.json @@ -1,4 +1,5 @@ { + "task_node_version": 20, "vault": { "url": "http://127.0.0.1:8200", "ignore_ssl": true, diff --git a/test/run_all.js b/test/run_all.js index 48fd2b4..014da0f 100644 --- a/test/run_all.js +++ b/test/run_all.js @@ -4,7 +4,7 @@ const ttm = require('azure-pipelines-task-lib/mock-test'); describe('azure-devops-vault-interaction', function () { - it("kv_read", (done) => { + it("kv_read", async () => { var tp = path.join(__dirname, "kv_read.js"); var tr = new ttm.MockTestRunner(tp); @@ -12,36 +12,33 @@ describe('azure-devops-vault-interaction', function () { var conf = require(path.join(__dirname, 'conf.json')); process.env["AUTH"] = conf.vault.login_auth; - tr.run(); + await tr.runAsync(conf.task_node_version); try { assert(tr.succeeded, "Should have succeeded"); console.log("STDOUT", tr.stdout); - done(); } catch (error) { console.log("STDERR", tr.stderr); console.log("STDOUT", tr.stdout); - done(error); } }).timeout(10000); - it("tool_create_file", (done) => { + it("tool_create_file", async () => { var tp = path.join(__dirname, "tool_create_file.js"); var tr = new ttm.MockTestRunner(tp); - tr.run(); + var conf = require(path.join(__dirname, 'conf.json')); + await tr.runAsync(conf.task_node_version); try { assert(tr.succeeded, "Should have succeeded"); console.log("STDOUT", tr.stdout); - done(); } catch (error) { console.log("STDERR", tr.stderr); console.log("STDOUT", tr.stdout); - done(error); } }).timeout(10000); }); diff --git a/vss-extension.json b/vss-extension.json index 26ecc18..ba70fc0 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "azure-devops-vault-interaction", "name": "Vault Interaction", - "version": "5.1.0", + "version": "5.2.0", "publisher": "Fizcko", "public": true, "targets": [