File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,10 @@ func TestCiphersBackwardCompatibility(t *testing.T) {
100
100
// 3. Copy the value from the test output and do what you need with it.
101
101
func TestHelpMeEncryptSomeValue (t * testing.T ) {
102
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
103
valueToEncrypt := os .Getenv ("ENCRYPT_ME" )
104
+ if valueToEncrypt == "" {
105
+ t .Skip ("Set ENCRYPT_ME to some value you need to encrypt" )
106
+ }
106
107
t .Logf ("valueToEncrypt: %q" , valueToEncrypt )
107
108
keys := os .Getenv ("CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS" )
108
109
require .NotEmpty (t , keys , "Set the CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS environment variable to use this" )
You can’t perform that action at this time.
0 commit comments