From b536ec9ec6e15093ec5e89d73d9ba3c539d1238b Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Wed, 5 Jul 2023 12:39:34 -0500 Subject: [PATCH] add test cases --- .github/workflows/build.yml | 2 +- integrationTests/e2e/e2e.test.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7fc7462..473292c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -189,7 +189,7 @@ jobs: # this step sets up secres to be used in Test Parsing Secrets (part 2/2) uses: ./ with: - url: https://localhost:8200 + url: http://localhost:8200 token: testtoken secrets: | secret/data/test-json-string jsonString; diff --git a/integrationTests/e2e/e2e.test.js b/integrationTests/e2e/e2e.test.js index 6495d14..d608384 100644 --- a/integrationTests/e2e/e2e.test.js +++ b/integrationTests/e2e/e2e.test.js @@ -10,5 +10,8 @@ describe('e2e', () => { expect(process.env.FOO).toBe("bar"); expect(process.env.NAMED_CUBBYSECRET).toBe("zap"); expect(process.env.SUBSEQUENT_TEST_SECRET).toBe("SUBSEQUENT_TEST_SECRET"); + expect(process.env.JSONSTRING).toBe('{"x":1,"y":"qux"}'); + expect(process.env.JSONSTRINGMULTILINE).toBe('{"x":1,"y":"q\\nux"}'); + expect(process.env.JSONDATA).toBe('{"x":1,"y":"qux"}'); }); });