import "istio.io/istio/security/pkg/nodeagent/test"
RotateCert forces cert to rotate at a specified interval for testing. Setting this to 0 disables rotation.
WriteDataToFile writes data into file
type Env struct { ProxySetup *istioEnv.TestSetup OutboundListenerPort int InboundListenerPort int // SDS server SDSServer *sds.Server // CA server CAServer *caserver.CAServer }
Env manages test setup and teardown.
SetupTest starts Envoy, SDS server, CA server and a dummy backend. The test allow HTTP request flow.
CA server | +--------SDS server--------+ | |
HTTP ->outbound ->outbound TLS <--mTLS-->inbound TLS ->inbound ->backend request listener cluster listener cluster
DumpPortMap dumps port allocation status outbound listener : ClientProxyPort inbound listener : ServerProxyPort test backend : BackendPort proxy admin : AdminPort SDS path : SDSPath
StartProxy starts proxy.
StartSDSServer starts SDS server
TearDown tears down all components.
Path | Synopsis |
---|---|
cert_rotation | |
csr_failure | |
empty_certchain | |
mock | |
success_sds |
Package test imports 16 packages (graph). Updated 2021-01-27. Refresh now. Tools for package owners.