we will truncate copy of encrypted audit log file
(t *testing.T, src string, dst string)
| 17 | |
| 18 | // we will truncate copy of encrypted audit log file |
| 19 | func copy(t *testing.T, src string, dst string) { |
| 20 | // could also us io.CopyN but this is a small file |
| 21 | data, err := os.ReadFile(src) |
| 22 | require.NoError(t, err) |
| 23 | err = os.WriteFile(dst, data, 0666) |
| 24 | require.NoError(t, err) |
| 25 | } |
| 26 | |
| 27 | // check whether we can properly decrypt an encryped audit log that is truncated at the tail |
| 28 | func TestDecrypt(t *testing.T) { |
no outgoing calls
no test coverage detected