mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
GODT-1779: Remove go-imap
This commit is contained in:
25
internal/vault/certs_test.go
Normal file
25
internal/vault/certs_test.go
Normal file
@ -0,0 +1,25 @@
|
||||
package vault_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestVault_TLSCerts(t *testing.T) {
|
||||
// create a new test vault.
|
||||
s := newVault(t)
|
||||
|
||||
// Check the default bridge TLS certs.
|
||||
require.NotEmpty(t, s.GetBridgeTLSCert())
|
||||
require.NotEmpty(t, s.GetBridgeTLSKey())
|
||||
|
||||
// Check the certificates are not installed.
|
||||
require.False(t, s.GetCertsInstalled())
|
||||
|
||||
// Install the certificates.
|
||||
require.NoError(t, s.SetCertsInstalled(true))
|
||||
|
||||
// Check the certificates are installed.
|
||||
require.True(t, s.GetCertsInstalled())
|
||||
}
|
||||
Reference in New Issue
Block a user