From 4aac50105a31cd523f6c78002a3d8e3799da57d8 Mon Sep 17 00:00:00 2001 From: Richard Simpson Date: Fri, 20 Sep 2019 15:46:13 -0500 Subject: [PATCH] chore: try another angle here --- .github/workflows/test.yml | 7 +++---- quicktest.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ff1f9f2..5f02cb6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,8 +42,7 @@ jobs: run: npm ci - name: test connection run: node quicktest.js - - env: - VAULT_HOST: localhost - VAULT_PORT: ${{ job.services.vault.ports[8200] }} + env: + VAULT_HOST: localhost + VAULT_PORT: ${{ job.services.vault.ports[8200] }} diff --git a/quicktest.js b/quicktest.js index 360aa02..f5754df 100644 --- a/quicktest.js +++ b/quicktest.js @@ -1,7 +1,7 @@ const got = require('got'); (async () => { - const result = await got(`${process.env.VAULT_HOST}:${process.env.VAULT_PORT}/v1/secret/config`, { + const result = await got(`https://${process.env.VAULT_HOST}:${process.env.VAULT_PORT}/v1/secret/config`, { method: 'POST', headers: { 'X-Vault-Token': 'testtoken'