Add e2e Tests for AuthTLS

Adds E2E tests for the following annotations:

- auth-tls-secret
- auth-tls-verify-depth
- auth-tls-verify-client
- auth-tls-error-page
- auth-tls-pass-certificate-to-upstream
This commit is contained in:
Fernando Diaz 2018-10-05 22:35:56 -05:00
parent 85424d4af3
commit b503c6bdeb
4 changed files with 395 additions and 12 deletions

View file

@ -18,7 +18,6 @@ package resolver
import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/ingress-nginx/internal/ingress/defaults"
)
@ -27,15 +26,18 @@ type Resolver interface {
// GetDefaultBackend returns the backend that must be used as default
GetDefaultBackend() defaults.Backend
// GetSecret searches for secrets contenating the namespace and name using a the character /
// GetSecret searches for secrets containing the namespace and name using a the character /
GetSecret(string) (*apiv1.Secret, error)
// GetAuthCertificate resolves a given secret name into an SSL certificate.
// The secret must contain 3 keys named:
// ca.crt: contains the certificate chain used for authentication
// tls.crt: contains the server certificate
// tls.key: contains the server key
GetAuthCertificate(string) (*AuthSSLCert, error)
// GetService searches for services contenating the namespace and name using a the character /
// GetService searches for services containing the namespace and name using a the character /
GetService(string) (*apiv1.Service, error)
}