Documentation ¶
Index ¶
- Constants
- func GetAnyAddress() string
- func GetDnsFamily() string
- func GetFilePath(file RuntimeFile) string
- func GetIpProtocol() string
- func GetLocalhost() string
- func GetLoopbackAddress() string
- func GetLoopbackHost() string
- func GetLoopbackIPv6Address() string
- func GetNetworkProtocol() string
- func IsPortUsed(port uint16) bool
- type Backend
- type Ports
- type RuntimeFile
Constants ¶
const ( TestAccessLog uint16 = iota TestAddHeaders TestAsymmetricKeys TestAuthAllowMissing TestAuthJwksAsyncFetch TestAuthJwksCache TestAuthWithMethodOverride TestBackendAddressOverride TestBackendAuthDisableAuth TestBackendAuthPerPlatform TestBackendAuthUsingIamIdTokenWithDelegates TestBackendAuthWithIamIdToken TestBackendAuthWithIamIdTokenRetries TestBackendAuthWithIamIdTokenTimeouts TestBackendAuthWithImdsIdToken TestBackendAuthWithImdsIdTokenRetries TestBackendAuthWithImdsIdTokenWhileAllowCors TestBackendCircuitBreaker TestBackendHttpProtocol TestBackendPerTryTimeout TestBackendRetry TestCancellationReport TestCompressionTranscoded TestDeadlinesForDynamicRouting TestDeadlinesForGrpcCatchAllBackend TestDeadlinesForGrpcDynamicRouting TestDeadlinesForLocalBackend TestDnsResolver TestDownstreamMTLS TestDynamicBackendRoutingMutualTLS TestDynamicBackendRoutingTLS TestDynamicGrpcBackendTLS TestDynamicRouting TestDynamicRoutingCorsByEnvoy TestDynamicRoutingEscapeSlashes TestDynamicRoutingPathPreprocessing TestDynamicRoutingWithAllowCors TestEnvoyDnsLookupPolicy TestExtractClientIPFromForwardedHeader TestFrontendAndBackendAuthHeaders TestGeneratedHeaders TestGRPC TestGrpcBackendPreflightCors TestGrpcBackendSimpleCors TestGrpcConnectionBufferLimit TestGRPCErrors TestGRPCFallback TestGRPCInteropMiniStress TestGRPCInterops TestGRPCJwt TestGRPCMetadata TestGRPCMinistress TestGRPCStreaming TestGRPCWeb TestHealthCheckGrpcBackend TestHSTS TestHttp1Basic TestHttp1JWT TestHttpHeaders TestIamImdsDataPath TestIdleTimeoutsForGrpcStreaming TestIdleTimeoutsForUnaryRPCs TestInvalidOpenIDConnectDiscovery TestJWTDisabledAudCheck TestJwtLocations TestManagedServiceConfig TestMetadataRequestsPerPlatform TestMetadataRequestsWithBackendAuthPerPlatform TestMethodOverrideBackendBody TestMethodOverrideBackendMethod TestMethodOverrideScReport TestMultiGrpcServices TestOperationNameHeader TestPreflightRequestWithAllowCors TestProxyHandleCorsSimpleRequestsBasic TestProxyHandleCorsSimpleRequestsRegex TestProxyHandlesCorsPreflightRequestsBasic TestProxyHandlesCorsPreflightWithDefaultAllowOrigin TestReportGCPAttributes TestReportGCPAttributesPerPlatform TestReportTraceId TestRetryCallServiceManagement TestServiceControlAccessTokenFromIam TestServiceControlAccessTokenFromTokenAgent TestServiceControlAllHTTPMethod TestServiceControlAllHTTPPath TestServiceControlAPIKeyCustomLocation TestServiceControlAPIKeyDefaultLocation TestServiceControlAPIKeyIpRestriction TestServiceControlAPIKeyRestriction TestServiceControlBasic TestServiceControlCache TestServiceControlCheckError TestServiceControlCheckRetry TestServiceControlCheckServerFail TestServiceControlCheckTimeout TestServiceControlCheckWrongServerName TestServiceControlCredentialId TestServiceControlFailedRequestReport TestServiceControlJwtAuthFail TestServiceControlLogHeaders TestServiceControlLogJwtPayloads TestServiceControlNetworkFailFlagForTimeout TestServiceControlProtocolWithGRPCBackend TestServiceControlProtocolWithHTTPBackend TestServiceControlQuota TestServiceControlQuotaExhausted TestServiceControlQuotaRetry TestServiceControlReportNetworkFail TestServiceControlReportResponseCode TestServiceControlReportRetry TestServiceControlRequestForDynamicRouting TestServiceControlRequestWithAllowCors TestServiceControlRequestWithoutAllowCors TestServiceControlSkipUsage TestServiceControlTLSWithValidCert TestServiceManagementWithInvalidCert TestServiceManagementWithValidCert TestStartupDuplicatedPathsWithAllowCors TestStatistics TestStatisticsServiceControlCallStatus TestTraceContextPropagationHeaders TestTraceContextPropagationHeadersForScCheck TestTracesDynamicRouting TestTracesFetchingJwks TestTracesServiceControlCheckWithRetry TestTracesServiceControlSkipUsage TestTracingSampleRate TestTranscodingBindings TestTranscodingBindingsForCustomVerb TestTranscodingUnescapePlus TestTranscodingErrors TestTranscodingIgnoreQueryParameters TestTranscodingPrintOptions TestWebsocket )
All integration tests should be listed here to get their test ids
const ( WorkingBackendPort string = "-1" InvalidBackendPort string = "6" )
Variables ¶
This section is empty.
Functions ¶
func GetAnyAddress ¶
func GetAnyAddress() string
Returns the meta-address that resolves to any address.
func GetFilePath ¶
func GetFilePath(file RuntimeFile) string
Get the runtime file path for the specified file.
func GetLocalhost ¶
func GetLocalhost() string
Returns localhost. Encouraged not to use this, as it doesn't provide guarantees on ipv4 vs ipv6 addresses.
func GetLoopbackAddress ¶
func GetLoopbackAddress() string
Returns the loopback address in a form that can be used with URLs.
func GetLoopbackHost ¶
func GetLoopbackHost() string
Returns the loopback hostname. Not safe to use in URLs.
func GetLoopbackIPv6Address ¶
func GetLoopbackIPv6Address() string
Returns the loopback IPv6 address. Need to embrace it with brackets to be used with URLs, e.g. [::1].
func GetNetworkProtocol ¶
func GetNetworkProtocol() string
Returns the network protocol, accepted by `net.Listen`.
Types ¶
type Backend ¶
type Backend int
Keys for all backends. In general, any backend that requires a new service config should be added here.
type Ports ¶
type Ports struct { BackendServerPort uint16 DynamicRoutingBackendPort uint16 ListenerPort uint16 AdminPort uint16 FakeStackdriverPort uint16 DnsResolverPort uint16 JwtRangeBase uint16 TokenAgentPort uint16 TestId uint16 }
Ports stores all used ports and other ids for shared resources
type RuntimeFile ¶
type RuntimeFile int
Keys for all files
const ( // Javascript files GrpcBookstore RuntimeFile = iota // Binaries Bootstrapper ConfigManager Echo Envoy GrpcEchoClient GrpcEchoServer GrpcInteropClient GrpcInteropServer GrpcInteropStressClient // Proto descriptors FakeGrpcEchoDescriptor FakeGrpcInteropDescriptor FakeGrpcBookstoreDescriptor // Other files ServerCert ServerKey ProxyCert ProxyKey DownstreamClientCert DownstreamClientKey MismatchCert MismatchKey LogMetrics Version AccessLog ServiceAccountFile TestRootCaCerts TestDataFolder // Configurations from examples directory AuthServiceConfig AuthEnvoyConfig ScServiceConfig ScEnvoyConfig DrServiceConfig DrEnvoyConfig RmServiceConfig RmEnvoyConfig SbServiceConfig SbEnvoyConfig GrpcEchoServiceConfig GrpcEchoEnvoyConfig // Other configurations for testing FixedDrServiceConfig FakeServiceAccountFile )