ЛР7 на 4: HTTPS, mTLS, OpenBao AppRole и ротация leaf.
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Smoke/security/grade4/persistence/failover пройдены; REPORT и DEFENSE.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package studenttests_test
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"net/http"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestMTLSLBDeniesUntrustedCA(t *testing.T) {
|
||||
client := &http.Client{Timeout: 5 * time.Second, Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: false}}}
|
||||
_, err := client.Get("https://127.0.0.1:8443/health/ready")
|
||||
if err == nil {
|
||||
t.Fatal("expected verify error with empty trust store")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user