Skip to content

Commit

Permalink
tweak: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xboarder56 committed Apr 16, 2024
1 parent ff4bb30 commit 2699114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions splunk/resource_splunk_saved_searches.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,19 +601,16 @@ func savedSearches() *schema.Resource {
"action_log_event_param_index": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Destination index for the logged event.",
},
"action_log_event_param_sourcetype": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Destination sourcetype for the logged event.",
},
"action_log_event_param_source": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Value of the source field for the logged event entry.",
},
"action_create_xsoar_incident": {
Expand Down
4 changes: 2 additions & 2 deletions splunk/resource_splunk_saved_searches_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ resource "splunk_saved_searches" "test" {
name = "Test Log Event Alert"
actions = "logevent"
action_log_event = "1"
action_log_event_param_event = "$result.js$"
action_log_event_param_event = "test data"
action_log_event_param_host = "splunk"
action_log_event_param_index = "main"
action_log_event_param_sourcetype = "stash"
Expand All @@ -118,7 +118,7 @@ resource "splunk_saved_searches" "test" {
is_scheduled = true
is_visible = true
realtime_schedule = true
search = "index=main level=error | eval js = json_object("source_ip", src_ip, "destination_ip", dest_ip)"
search = "index=main level=error"
}
`

Expand Down

0 comments on commit 2699114

Please sign in to comment.