mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
cleanup etcd_certificates in /tmp
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
6f3212f831
commit
03f5866ede
@ -20,6 +20,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
@ -35,6 +36,7 @@ import (
|
|||||||
|
|
||||||
func TestTLSConnection(t *testing.T) {
|
func TestTLSConnection(t *testing.T) {
|
||||||
certFile, keyFile, caFile := configureTLSCerts(t)
|
certFile, keyFile, caFile := configureTLSCerts(t)
|
||||||
|
defer os.RemoveAll(filepath.Dir(certFile))
|
||||||
|
|
||||||
tlsInfo := &transport.TLSInfo{
|
tlsInfo := &transport.TLSInfo{
|
||||||
CertFile: certFile,
|
CertFile: certFile,
|
||||||
|
Loading…
Reference in New Issue
Block a user