-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
impart-security
committed
Jul 24, 2024
1 parent
1c616bd
commit 827af1a
Showing
16 changed files
with
2,828 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.7.0 | ||
0.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "impart_rule_test_case Resource - impart" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# impart_rule_test_case (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "impart_rule_test_case" "example" { | ||
name = "example" | ||
description = "test case description" | ||
messages = [ | ||
{ | ||
count = 1 | ||
req = { | ||
url = "http://example.com" | ||
method = "GET" | ||
body = base64encode("request body") | ||
header_keys = ["Header1"] | ||
header_values = ["value1"] | ||
remote_addr = "192.168.1.1" | ||
} | ||
res = { | ||
status_code = 201 | ||
header_keys = ["Header1"] | ||
header_values = ["value1"] | ||
body = base64encode("response body") | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `messages` (Attributes List) The messages of the test case. (see [below for nested schema](#nestedatt--messages)) | ||
- `name` (String) The name of the test case. | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of the test case. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Identifier of the test case. | ||
|
||
<a id="nestedatt--messages"></a> | ||
### Nested Schema for `messages` | ||
|
||
Required: | ||
|
||
- `req` (Attributes) A payload sent to the inspector to inspect an HTTP request. (see [below for nested schema](#nestedatt--messages--req)) | ||
- `res` (Attributes) A payload sent to the inspector to inspect an HTTP response. (see [below for nested schema](#nestedatt--messages--res)) | ||
|
||
Optional: | ||
|
||
- `count` (Number) The number of times to include the message in the test case. | ||
- `delay` (Number) The delay in milliseconds between message iterations. | ||
- `post_delay` (Number) The delay in milliseconds after a set of message iterations. | ||
|
||
<a id="nestedatt--messages--req"></a> | ||
### Nested Schema for `messages.req` | ||
|
||
Required: | ||
|
||
- `method` (String) The method of the request. | ||
- `url` (String) The URL of the request. | ||
|
||
Optional: | ||
|
||
- `body` (String) The base64 encoded HTTP request body. | ||
- `cookie_keys` (List of String) The HTTP request cookie keys. | ||
- `cookie_values` (List of String) The HTTP request cookie values. | ||
- `header_keys` (List of String) The HTTP request header keys. | ||
- `header_values` (List of String) The HTTP request header values. | ||
- `remote_addr` (String) The remote address of the request. | ||
- `truncated_body` (Boolean) Indicates whether the request body was truncated. | ||
|
||
|
||
<a id="nestedatt--messages--res"></a> | ||
### Nested Schema for `messages.res` | ||
|
||
Required: | ||
|
||
- `status_code` (Number) The HTTP response status code. | ||
|
||
Optional: | ||
|
||
- `body` (String) The base64 encoded HTTP response body. | ||
- `header_keys` (List of String) The HTTP response header keys. | ||
- `header_values` (List of String) The HTTP response header values. | ||
- `truncated_body` (Boolean) Indicates whether the response body was truncated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resource "impart_rule_test_case" "example" { | ||
name = "example" | ||
description = "test case description" | ||
messages = [ | ||
{ | ||
count = 1 | ||
req = { | ||
url = "http://example.com" | ||
method = "GET" | ||
body = base64encode("request body") | ||
header_keys = ["Header1"] | ||
header_values = ["value1"] | ||
remote_addr = "192.168.1.1" | ||
} | ||
res = { | ||
status_code = 201 | ||
header_keys = ["Header1"] | ||
header_values = ["value1"] | ||
body = base64encode("response body") | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.