We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0d8d5f2 commit006600eCopy full SHA for 006600e
enterprise/dbcrypt/cipher_internal_test.go
@@ -100,9 +100,10 @@ func TestCiphersBackwardCompatibility(t *testing.T) {
100
// 3. Copy the value from the test output and do what you need with it.
101
funcTestHelpMeEncryptSomeValue(t*testing.T) {
102
t.Parallel()
103
-t.Skip("this only exists if you need to encrypt a value with dbcrypt, it does not actually test anything")
104
-
105
valueToEncrypt:=os.Getenv("ENCRYPT_ME")
+ifvalueToEncrypt=="" {
+t.Skip("Set ENCRYPT_ME to some value you need to encrypt")
106
+}
107
t.Logf("valueToEncrypt: %q",valueToEncrypt)
108
keys:=os.Getenv("CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS")
109
require.NotEmpty(t,keys,"Set the CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS environment variable to use this")