Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::UrlMapTest.
Message for the expected URL mappings.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#description
def description() -> ::String- (::String) — Description of this test case.
#description=
def description=(value) -> ::String- value (::String) — Description of this test case.
- (::String) — Description of this test case.
#expected_output_url
def expected_output_url() -> ::String-
(::String) — 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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
#expected_output_url=
def expected_output_url=(value) -> ::String-
value (::String) — 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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
-
(::String) — 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 whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl 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 whenservice is specified.
#expected_redirect_response_code
def expected_redirect_response_code() -> ::Integer-
(::Integer) — For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
load balancer's redirect response.
expectedRedirectResponseCode cannot be set whenservice is set.
#expected_redirect_response_code=
def expected_redirect_response_code=(value) -> ::Integer-
value (::Integer) — For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
load balancer's redirect response.
expectedRedirectResponseCode cannot be set whenservice is set.
-
(::Integer) — For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
load balancer's redirect response.
expectedRedirectResponseCode cannot be set whenservice is set.
#headers
def headers() -> ::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>- (::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>) — HTTP headers for this request. If headers contains a host header, then host must also match the header value.
#headers=
def headers=(value) -> ::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>- value (::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>) — HTTP headers for this request. If headers contains a host header, then host must also match the header value.
- (::Array<::Google::Cloud::Compute::V1::UrlMapTestHeader>) — HTTP headers for this request. If headers contains a host header, then host must also match the header value.
#host
def host() -> ::String- (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.
#host=
def host=(value) -> ::String- value (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.
- (::String) — Host portion of the URL. If headers contains a host header, then host must also match the header value.
#path
def path() -> ::String- (::String) — Path portion of the URL.
#path=
def path=(value) -> ::String- value (::String) — Path portion of the URL.
- (::String) — Path portion of the URL.
#service
def service() -> ::String-
(::String) — Expected BackendService or BackendBucket resource
the given URL should be mapped to.
The service field cannot be set if expectedRedirectResponseCode is set.
#service=
def service=(value) -> ::String-
value (::String) — Expected BackendService or BackendBucket resource
the given URL should be mapped to.
The service field cannot be set if expectedRedirectResponseCode is set.
-
(::String) — Expected BackendService or BackendBucket resource
the given URL should be mapped to.
The service field cannot be set if expectedRedirectResponseCode is set.