From 6ad835a524458cdaf9a1ccac545f7885257c0e13 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 26 Mar 2025 17:24:40 +0000 Subject: [PATCH] chore(enterprise/dbcrypt): adjust behaviour of TestHelpMeEncryptSomeValue --- enterprise/dbcrypt/cipher_internal_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/enterprise/dbcrypt/cipher_internal_test.go b/enterprise/dbcrypt/cipher_internal_test.go index f3884df23f0bc..ef9b7d6cd6c2f 100644 --- a/enterprise/dbcrypt/cipher_internal_test.go +++ b/enterprise/dbcrypt/cipher_internal_test.go @@ -100,9 +100,10 @@ func TestCiphersBackwardCompatibility(t *testing.T) { // 3. Copy the value from the test output and do what you need with it. func TestHelpMeEncryptSomeValue(t *testing.T) { t.Parallel() - t.Skip("this only exists if you need to encrypt a value with dbcrypt, it does not actually test anything") - valueToEncrypt := os.Getenv("ENCRYPT_ME") + if valueToEncrypt == "" { + t.Skip("Set ENCRYPT_ME to some value you need to encrypt") + } t.Logf("valueToEncrypt: %q", valueToEncrypt) keys := os.Getenv("CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS") require.NotEmpty(t, keys, "Set the CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS environment variable to use this") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy