pub struct UrlMapTest {
pub description: Option<String>,
pub expected_output_url: Option<String>,
pub expected_redirect_response_code: Option<i32>,
pub headers: Option<Vec<UrlMapTestHeader>>,
pub host: Option<String>,
pub path: Option<String>,
pub service: Option<String>,
}
Expand description
Message for the expected URL mappings.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>
Description of this test case.
expected_output_url: Option<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 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.
expected_redirect_response_code: Option<i32>
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.
headers: Option<Vec<UrlMapTestHeader>>
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
host: Option<String>
Host portion of the URL. If headers contains a host header, then host must also match the header value.
path: Option<String>
Path portion of the URL.
service: Option<String>
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
Trait Implementations§
Source§impl Clone for UrlMapTest
impl Clone for UrlMapTest
Source§fn clone(&self) -> UrlMapTest
fn clone(&self) -> UrlMapTest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UrlMapTest
impl Debug for UrlMapTest
Source§impl Default for UrlMapTest
impl Default for UrlMapTest
Source§fn default() -> UrlMapTest
fn default() -> UrlMapTest
Source§impl<'de> Deserialize<'de> for UrlMapTest
impl<'de> Deserialize<'de> for UrlMapTest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for UrlMapTest
impl Serialize for UrlMapTest
impl Part for UrlMapTest
Auto Trait Implementations§
impl Freeze for UrlMapTest
impl RefUnwindSafe for UrlMapTest
impl Send for UrlMapTest
impl Sync for UrlMapTest
impl Unpin for UrlMapTest
impl UnwindSafe for UrlMapTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more