From bc86e55880183016e467bdf65c9fdb3b14150365 Mon Sep 17 00:00:00 2001 From: brianspierce Date: Thu, 20 Jul 2023 12:50:37 -0700 Subject: [PATCH] remove ssl from env.example --- .env.example | 2 +- pkg/internal/common/crypt_test.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index f6331757..9b4aa7de 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -BASE_URL=https://localhost:5555/ +BASE_URL=http://localhost:5555/ ENV=local PORT=5555 diff --git a/pkg/internal/common/crypt_test.go b/pkg/internal/common/crypt_test.go index f2c341f4..68319027 100644 --- a/pkg/internal/common/crypt_test.go +++ b/pkg/internal/common/crypt_test.go @@ -5,6 +5,9 @@ import ( "time" libcommon "github.com/String-xyz/go-lib/v2/common" + env "github.com/String-xyz/go-lib/v2/config" + + "github.com/String-xyz/string-api/config" "github.com/stretchr/testify/assert" ) @@ -77,7 +80,7 @@ func TestEncryptDecryptUnencoded(t *testing.T) { } func TestEncryptDecryptKMS(t *testing.T) { - + env.LoadEnv(&config.Var, "../../../.env") obj := "herein lie the secrets of the universe" objEncrypted, err := EncryptStringToKMS(obj) assert.NoError(t, err)