Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UrlMapTest

import type { UrlMapTest } from "https://googleapis.deno.dev/v1/compute:v1.ts";

Message for the expected URL mappings.

interface UrlMapTest {
description?: string;
expectedOutputUrl?: string;
expectedRedirectResponseCode?: number;
headers?: UrlMapTestHeader[];
host?: string;
path?: string;
service?: string;
}

§Properties

§
description?: string
[src]

Description of this test case.

§
expectedOutputUrl?: string
[src]

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.

§
expectedRedirectResponseCode?: number
[src]

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.

§

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

§
host?: string
[src]

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

§
path?: string
[src]

Path portion of the URL.

§
service?: string
[src]

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