1. Packages
  2. Impart Security
  3. API Docs
  4. RuleTestCase
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

impart.RuleTestCase

Explore with Pulumi AI

impart logo
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

    Example Usage

    Create RuleTestCase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RuleTestCase(name: string, args: RuleTestCaseArgs, opts?: CustomResourceOptions);
    @overload
    def RuleTestCase(resource_name: str,
                     args: RuleTestCaseArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def RuleTestCase(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     messages: Optional[Sequence[RuleTestCaseMessageArgs]] = None,
                     name: Optional[str] = None,
                     assertions: Optional[Sequence[RuleTestCaseAssertionArgs]] = None,
                     description: Optional[str] = None,
                     labels: Optional[Sequence[str]] = None,
                     required: Optional[bool] = None)
    func NewRuleTestCase(ctx *Context, name string, args RuleTestCaseArgs, opts ...ResourceOption) (*RuleTestCase, error)
    public RuleTestCase(string name, RuleTestCaseArgs args, CustomResourceOptions? opts = null)
    public RuleTestCase(String name, RuleTestCaseArgs args)
    public RuleTestCase(String name, RuleTestCaseArgs args, CustomResourceOptions options)
    
    type: impart:RuleTestCase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RuleTestCaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RuleTestCaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RuleTestCaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleTestCaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleTestCaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ruleTestCaseResource = new Impart.RuleTestCase("ruleTestCaseResource", new()
    {
        Messages = new[]
        {
            new Impart.Inputs.RuleTestCaseMessageArgs
            {
                Req = new Impart.Inputs.RuleTestCaseMessageReqArgs
                {
                    Method = "string",
                    Url = "string",
                    Body = "string",
                    CookieKeys = new[]
                    {
                        "string",
                    },
                    CookieValues = new[]
                    {
                        "string",
                    },
                    HeaderKeys = new[]
                    {
                        "string",
                    },
                    HeaderValues = new[]
                    {
                        "string",
                    },
                    RemoteAddr = "string",
                    TruncatedBody = false,
                },
                Res = new Impart.Inputs.RuleTestCaseMessageResArgs
                {
                    StatusCode = 0,
                    Body = "string",
                    HeaderKeys = new[]
                    {
                        "string",
                    },
                    HeaderValues = new[]
                    {
                        "string",
                    },
                    TruncatedBody = false,
                },
                Count = 0,
                Delay = 0,
                Description = "string",
                PostDelay = 0,
            },
        },
        Name = "string",
        Assertions = new[]
        {
            new Impart.Inputs.RuleTestCaseAssertionArgs
            {
                AssertionType = "string",
                Expected = "string",
                MessageIndexes = new[]
                {
                    0,
                },
                Condition = "string",
                Description = "string",
                Location = "string",
            },
        },
        Description = "string",
        Labels = new[]
        {
            "string",
        },
        Required = false,
    });
    
    example, err := impart.NewRuleTestCase(ctx, "ruleTestCaseResource", &impart.RuleTestCaseArgs{
    	Messages: impart.RuleTestCaseMessageArray{
    		&impart.RuleTestCaseMessageArgs{
    			Req: &impart.RuleTestCaseMessageReqArgs{
    				Method: pulumi.String("string"),
    				Url:    pulumi.String("string"),
    				Body:   pulumi.String("string"),
    				CookieKeys: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				CookieValues: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				HeaderKeys: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				HeaderValues: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				RemoteAddr:    pulumi.String("string"),
    				TruncatedBody: pulumi.Bool(false),
    			},
    			Res: &impart.RuleTestCaseMessageResArgs{
    				StatusCode: pulumi.Float64(0),
    				Body:       pulumi.String("string"),
    				HeaderKeys: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				HeaderValues: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				TruncatedBody: pulumi.Bool(false),
    			},
    			Count:       pulumi.Float64(0),
    			Delay:       pulumi.Float64(0),
    			Description: pulumi.String("string"),
    			PostDelay:   pulumi.Float64(0),
    		},
    	},
    	Name: pulumi.String("string"),
    	Assertions: impart.RuleTestCaseAssertionArray{
    		&impart.RuleTestCaseAssertionArgs{
    			AssertionType: pulumi.String("string"),
    			Expected:      pulumi.String("string"),
    			MessageIndexes: pulumi.Float64Array{
    				pulumi.Float64(0),
    			},
    			Condition:   pulumi.String("string"),
    			Description: pulumi.String("string"),
    			Location:    pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Required: pulumi.Bool(false),
    })
    
    var ruleTestCaseResource = new RuleTestCase("ruleTestCaseResource", RuleTestCaseArgs.builder()
        .messages(RuleTestCaseMessageArgs.builder()
            .req(RuleTestCaseMessageReqArgs.builder()
                .method("string")
                .url("string")
                .body("string")
                .cookieKeys("string")
                .cookieValues("string")
                .headerKeys("string")
                .headerValues("string")
                .remoteAddr("string")
                .truncatedBody(false)
                .build())
            .res(RuleTestCaseMessageResArgs.builder()
                .statusCode(0)
                .body("string")
                .headerKeys("string")
                .headerValues("string")
                .truncatedBody(false)
                .build())
            .count(0)
            .delay(0)
            .description("string")
            .postDelay(0)
            .build())
        .name("string")
        .assertions(RuleTestCaseAssertionArgs.builder()
            .assertionType("string")
            .expected("string")
            .messageIndexes(0)
            .condition("string")
            .description("string")
            .location("string")
            .build())
        .description("string")
        .labels("string")
        .required(false)
        .build());
    
    rule_test_case_resource = impart.RuleTestCase("ruleTestCaseResource",
        messages=[{
            "req": {
                "method": "string",
                "url": "string",
                "body": "string",
                "cookie_keys": ["string"],
                "cookie_values": ["string"],
                "header_keys": ["string"],
                "header_values": ["string"],
                "remote_addr": "string",
                "truncated_body": False,
            },
            "res": {
                "status_code": 0,
                "body": "string",
                "header_keys": ["string"],
                "header_values": ["string"],
                "truncated_body": False,
            },
            "count": 0,
            "delay": 0,
            "description": "string",
            "post_delay": 0,
        }],
        name="string",
        assertions=[{
            "assertion_type": "string",
            "expected": "string",
            "message_indexes": [0],
            "condition": "string",
            "description": "string",
            "location": "string",
        }],
        description="string",
        labels=["string"],
        required=False)
    
    const ruleTestCaseResource = new impart.RuleTestCase("ruleTestCaseResource", {
        messages: [{
            req: {
                method: "string",
                url: "string",
                body: "string",
                cookieKeys: ["string"],
                cookieValues: ["string"],
                headerKeys: ["string"],
                headerValues: ["string"],
                remoteAddr: "string",
                truncatedBody: false,
            },
            res: {
                statusCode: 0,
                body: "string",
                headerKeys: ["string"],
                headerValues: ["string"],
                truncatedBody: false,
            },
            count: 0,
            delay: 0,
            description: "string",
            postDelay: 0,
        }],
        name: "string",
        assertions: [{
            assertionType: "string",
            expected: "string",
            messageIndexes: [0],
            condition: "string",
            description: "string",
            location: "string",
        }],
        description: "string",
        labels: ["string"],
        required: false,
    });
    
    type: impart:RuleTestCase
    properties:
        assertions:
            - assertionType: string
              condition: string
              description: string
              expected: string
              location: string
              messageIndexes:
                - 0
        description: string
        labels:
            - string
        messages:
            - count: 0
              delay: 0
              description: string
              postDelay: 0
              req:
                body: string
                cookieKeys:
                    - string
                cookieValues:
                    - string
                headerKeys:
                    - string
                headerValues:
                    - string
                method: string
                remoteAddr: string
                truncatedBody: false
                url: string
              res:
                body: string
                headerKeys:
                    - string
                headerValues:
                    - string
                statusCode: 0
                truncatedBody: false
        name: string
        required: false
    

    RuleTestCase Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RuleTestCase resource accepts the following input properties:

    Messages List<RuleTestCaseMessage>
    The messages of the test case.
    Name string
    The name of the test case.
    Assertions List<RuleTestCaseAssertion>
    The assertions of the test case.
    Description string
    The description of the test case.
    Labels List<string>
    The applied labels.
    Required bool
    Sets if test case required to pass on update.
    Messages []RuleTestCaseMessageArgs
    The messages of the test case.
    Name string
    The name of the test case.
    Assertions []RuleTestCaseAssertionArgs
    The assertions of the test case.
    Description string
    The description of the test case.
    Labels []string
    The applied labels.
    Required bool
    Sets if test case required to pass on update.
    messages List<RuleTestCaseMessage>
    The messages of the test case.
    name String
    The name of the test case.
    assertions List<RuleTestCaseAssertion>
    The assertions of the test case.
    description String
    The description of the test case.
    labels List<String>
    The applied labels.
    required Boolean
    Sets if test case required to pass on update.
    messages RuleTestCaseMessage[]
    The messages of the test case.
    name string
    The name of the test case.
    assertions RuleTestCaseAssertion[]
    The assertions of the test case.
    description string
    The description of the test case.
    labels string[]
    The applied labels.
    required boolean
    Sets if test case required to pass on update.
    messages Sequence[RuleTestCaseMessageArgs]
    The messages of the test case.
    name str
    The name of the test case.
    assertions Sequence[RuleTestCaseAssertionArgs]
    The assertions of the test case.
    description str
    The description of the test case.
    labels Sequence[str]
    The applied labels.
    required bool
    Sets if test case required to pass on update.
    messages List<Property Map>
    The messages of the test case.
    name String
    The name of the test case.
    assertions List<Property Map>
    The assertions of the test case.
    description String
    The description of the test case.
    labels List<String>
    The applied labels.
    required Boolean
    Sets if test case required to pass on update.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RuleTestCase resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RuleTestCase Resource

    Get an existing RuleTestCase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RuleTestCaseState, opts?: CustomResourceOptions): RuleTestCase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assertions: Optional[Sequence[RuleTestCaseAssertionArgs]] = None,
            description: Optional[str] = None,
            labels: Optional[Sequence[str]] = None,
            messages: Optional[Sequence[RuleTestCaseMessageArgs]] = None,
            name: Optional[str] = None,
            required: Optional[bool] = None) -> RuleTestCase
    func GetRuleTestCase(ctx *Context, name string, id IDInput, state *RuleTestCaseState, opts ...ResourceOption) (*RuleTestCase, error)
    public static RuleTestCase Get(string name, Input<string> id, RuleTestCaseState? state, CustomResourceOptions? opts = null)
    public static RuleTestCase get(String name, Output<String> id, RuleTestCaseState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Assertions List<RuleTestCaseAssertion>
    The assertions of the test case.
    Description string
    The description of the test case.
    Labels List<string>
    The applied labels.
    Messages List<RuleTestCaseMessage>
    The messages of the test case.
    Name string
    The name of the test case.
    Required bool
    Sets if test case required to pass on update.
    Assertions []RuleTestCaseAssertionArgs
    The assertions of the test case.
    Description string
    The description of the test case.
    Labels []string
    The applied labels.
    Messages []RuleTestCaseMessageArgs
    The messages of the test case.
    Name string
    The name of the test case.
    Required bool
    Sets if test case required to pass on update.
    assertions List<RuleTestCaseAssertion>
    The assertions of the test case.
    description String
    The description of the test case.
    labels List<String>
    The applied labels.
    messages List<RuleTestCaseMessage>
    The messages of the test case.
    name String
    The name of the test case.
    required Boolean
    Sets if test case required to pass on update.
    assertions RuleTestCaseAssertion[]
    The assertions of the test case.
    description string
    The description of the test case.
    labels string[]
    The applied labels.
    messages RuleTestCaseMessage[]
    The messages of the test case.
    name string
    The name of the test case.
    required boolean
    Sets if test case required to pass on update.
    assertions Sequence[RuleTestCaseAssertionArgs]
    The assertions of the test case.
    description str
    The description of the test case.
    labels Sequence[str]
    The applied labels.
    messages Sequence[RuleTestCaseMessageArgs]
    The messages of the test case.
    name str
    The name of the test case.
    required bool
    Sets if test case required to pass on update.
    assertions List<Property Map>
    The assertions of the test case.
    description String
    The description of the test case.
    labels List<String>
    The applied labels.
    messages List<Property Map>
    The messages of the test case.
    name String
    The name of the test case.
    required Boolean
    Sets if test case required to pass on update.

    Supporting Types

    RuleTestCaseAssertion, RuleTestCaseAssertionArgs

    AssertionType string
    The assertion type of the request.
    Expected string
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    MessageIndexes List<double>
    The indexes of the messages in the test case the assertion applies to.
    Condition string
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    Description string
    The description of the assertion.
    Location string
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
    AssertionType string
    The assertion type of the request.
    Expected string
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    MessageIndexes []float64
    The indexes of the messages in the test case the assertion applies to.
    Condition string
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    Description string
    The description of the assertion.
    Location string
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
    assertionType String
    The assertion type of the request.
    expected String
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    messageIndexes List<Double>
    The indexes of the messages in the test case the assertion applies to.
    condition String
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    description String
    The description of the assertion.
    location String
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
    assertionType string
    The assertion type of the request.
    expected string
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    messageIndexes number[]
    The indexes of the messages in the test case the assertion applies to.
    condition string
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    description string
    The description of the assertion.
    location string
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
    assertion_type str
    The assertion type of the request.
    expected str
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    message_indexes Sequence[float]
    The indexes of the messages in the test case the assertion applies to.
    condition str
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    description str
    The description of the assertion.
    location str
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.
    assertionType String
    The assertion type of the request.
    expected String
    The expected value of the assertion. It is a string value, and the format it must satisfy depends on the assertion type: output: A string. tags: A string. status_code: An integer value (e.g., "200") or comma-separated list of integers for one_of condition (e.g., "200,404,500"). block: A boolean value represented as "true" or "false".
    messageIndexes List<Number>
    The indexes of the messages in the test case the assertion applies to.
    condition String
    The condition of the assertion. Accepted values per assertion type: output: contains, notcontains. tags: contains, notcontains. status_code: equal, notequal, greaterthan, lessthan, oneof. block: N/A
    description String
    The description of the assertion.
    location String
    The location of the assertion. Allowed values: req, res. Not applicable for assertion type output.

    RuleTestCaseMessage, RuleTestCaseMessageArgs

    Req RuleTestCaseMessageReq
    A payload sent to the inspector to inspect an HTTP request.
    Res RuleTestCaseMessageRes
    A payload sent to the inspector to inspect an HTTP response.
    Count double
    The number of times to include the message in the test case.
    Delay double
    The delay in milliseconds between message iterations.
    Description string
    The description of the test case message.
    PostDelay double
    The delay in milliseconds after a set of message iterations.
    Req RuleTestCaseMessageReq
    A payload sent to the inspector to inspect an HTTP request.
    Res RuleTestCaseMessageRes
    A payload sent to the inspector to inspect an HTTP response.
    Count float64
    The number of times to include the message in the test case.
    Delay float64
    The delay in milliseconds between message iterations.
    Description string
    The description of the test case message.
    PostDelay float64
    The delay in milliseconds after a set of message iterations.
    req RuleTestCaseMessageReq
    A payload sent to the inspector to inspect an HTTP request.
    res RuleTestCaseMessageRes
    A payload sent to the inspector to inspect an HTTP response.
    count Double
    The number of times to include the message in the test case.
    delay Double
    The delay in milliseconds between message iterations.
    description String
    The description of the test case message.
    postDelay Double
    The delay in milliseconds after a set of message iterations.
    req RuleTestCaseMessageReq
    A payload sent to the inspector to inspect an HTTP request.
    res RuleTestCaseMessageRes
    A payload sent to the inspector to inspect an HTTP response.
    count number
    The number of times to include the message in the test case.
    delay number
    The delay in milliseconds between message iterations.
    description string
    The description of the test case message.
    postDelay number
    The delay in milliseconds after a set of message iterations.
    req RuleTestCaseMessageReq
    A payload sent to the inspector to inspect an HTTP request.
    res RuleTestCaseMessageRes
    A payload sent to the inspector to inspect an HTTP response.
    count float
    The number of times to include the message in the test case.
    delay float
    The delay in milliseconds between message iterations.
    description str
    The description of the test case message.
    post_delay float
    The delay in milliseconds after a set of message iterations.
    req Property Map
    A payload sent to the inspector to inspect an HTTP request.
    res Property Map
    A payload sent to the inspector to inspect an HTTP response.
    count Number
    The number of times to include the message in the test case.
    delay Number
    The delay in milliseconds between message iterations.
    description String
    The description of the test case message.
    postDelay Number
    The delay in milliseconds after a set of message iterations.

    RuleTestCaseMessageReq, RuleTestCaseMessageReqArgs

    Method string
    The method of the request.
    Url string
    The URL of the request.
    Body string
    The base64 encoded HTTP request body.
    CookieKeys List<string>
    The HTTP request cookie keys.
    CookieValues List<string>
    The HTTP request cookie values.
    HeaderKeys List<string>
    The HTTP request header keys.
    HeaderValues List<string>
    The HTTP request header values.
    RemoteAddr string
    The remote address of the request.
    TruncatedBody bool
    Indicates whether the request body was truncated.
    Method string
    The method of the request.
    Url string
    The URL of the request.
    Body string
    The base64 encoded HTTP request body.
    CookieKeys []string
    The HTTP request cookie keys.
    CookieValues []string
    The HTTP request cookie values.
    HeaderKeys []string
    The HTTP request header keys.
    HeaderValues []string
    The HTTP request header values.
    RemoteAddr string
    The remote address of the request.
    TruncatedBody bool
    Indicates whether the request body was truncated.
    method String
    The method of the request.
    url String
    The URL of the request.
    body String
    The base64 encoded HTTP request body.
    cookieKeys List<String>
    The HTTP request cookie keys.
    cookieValues List<String>
    The HTTP request cookie values.
    headerKeys List<String>
    The HTTP request header keys.
    headerValues List<String>
    The HTTP request header values.
    remoteAddr String
    The remote address of the request.
    truncatedBody Boolean
    Indicates whether the request body was truncated.
    method string
    The method of the request.
    url string
    The URL of the request.
    body string
    The base64 encoded HTTP request body.
    cookieKeys string[]
    The HTTP request cookie keys.
    cookieValues string[]
    The HTTP request cookie values.
    headerKeys string[]
    The HTTP request header keys.
    headerValues string[]
    The HTTP request header values.
    remoteAddr string
    The remote address of the request.
    truncatedBody boolean
    Indicates whether the request body was truncated.
    method str
    The method of the request.
    url str
    The URL of the request.
    body str
    The base64 encoded HTTP request body.
    cookie_keys Sequence[str]
    The HTTP request cookie keys.
    cookie_values Sequence[str]
    The HTTP request cookie values.
    header_keys Sequence[str]
    The HTTP request header keys.
    header_values Sequence[str]
    The HTTP request header values.
    remote_addr str
    The remote address of the request.
    truncated_body bool
    Indicates whether the request body was truncated.
    method String
    The method of the request.
    url String
    The URL of the request.
    body String
    The base64 encoded HTTP request body.
    cookieKeys List<String>
    The HTTP request cookie keys.
    cookieValues List<String>
    The HTTP request cookie values.
    headerKeys List<String>
    The HTTP request header keys.
    headerValues List<String>
    The HTTP request header values.
    remoteAddr String
    The remote address of the request.
    truncatedBody Boolean
    Indicates whether the request body was truncated.

    RuleTestCaseMessageRes, RuleTestCaseMessageResArgs

    StatusCode double
    The HTTP response status code.
    Body string
    The base64 encoded HTTP response body.
    HeaderKeys List<string>
    The HTTP response header keys.
    HeaderValues List<string>
    The HTTP response header values.
    TruncatedBody bool
    Indicates whether the response body was truncated.
    StatusCode float64
    The HTTP response status code.
    Body string
    The base64 encoded HTTP response body.
    HeaderKeys []string
    The HTTP response header keys.
    HeaderValues []string
    The HTTP response header values.
    TruncatedBody bool
    Indicates whether the response body was truncated.
    statusCode Double
    The HTTP response status code.
    body String
    The base64 encoded HTTP response body.
    headerKeys List<String>
    The HTTP response header keys.
    headerValues List<String>
    The HTTP response header values.
    truncatedBody Boolean
    Indicates whether the response body was truncated.
    statusCode number
    The HTTP response status code.
    body string
    The base64 encoded HTTP response body.
    headerKeys string[]
    The HTTP response header keys.
    headerValues string[]
    The HTTP response header values.
    truncatedBody boolean
    Indicates whether the response body was truncated.
    status_code float
    The HTTP response status code.
    body str
    The base64 encoded HTTP response body.
    header_keys Sequence[str]
    The HTTP response header keys.
    header_values Sequence[str]
    The HTTP response header values.
    truncated_body bool
    Indicates whether the response body was truncated.
    statusCode Number
    The HTTP response status code.
    body String
    The base64 encoded HTTP response body.
    headerKeys List<String>
    The HTTP response header keys.
    headerValues List<String>
    The HTTP response header values.
    truncatedBody Boolean
    Indicates whether the response body was truncated.

    Package Details

    Repository
    impart impart-security/pulumi-impart
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the impart Terraform Provider.
    impart logo
    Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security