UrlMapTestArgs

data class UrlMapTestArgs(val description: Output<String>? = null, val expectedOutputUrl: Output<String>? = null, val expectedRedirectResponseCode: Output<Int>? = null, val headers: Output<List<UrlMapTestHeaderArgs>>? = null, val host: Output<String>? = null, val path: Output<String>? = null, val service: Output<String>? = null) : ConvertibleToJava<UrlMapTestArgs>

Message for the expected URL mappings.

Constructors

Link copied to clipboard
fun UrlMapTestArgs(description: Output<String>? = null, expectedOutputUrl: Output<String>? = null, expectedRedirectResponseCode: Output<Int>? = null, headers: Output<List<UrlMapTestHeaderArgs>>? = null, host: Output<String>? = null, path: Output<String>? = null, service: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): UrlMapTestArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of this test case.

Link copied to clipboard
val expectedOutputUrl: Output<String>? = null

The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.

Link copied to clipboard
val expectedRedirectResponseCode: Output<Int>? = null

For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.

Link copied to clipboard
val headers: Output<List<UrlMapTestHeaderArgs>>? = null

HTTP headers for this request. If headers contains a host header, then host must also match the header value.

Link copied to clipboard
val host: Output<String>? = null

Host portion of the URL. If headers contains a host header, then host must also match the header value.

Link copied to clipboard
val path: Output<String>? = null

Path portion of the URL.

Link copied to clipboard
val service: Output<String>? = null

Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.