Skip to content

Commit

Permalink
Fixed journey action maps
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecon committed Jul 17, 2024
1 parent 73e54eb commit aa2c81a
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ resource "genesyscloud_journey_action_map" "terraform_test_-TEST-CASE-" {
}
ignore_frequency_cap = true
end_date = "2022-08-01T10:30:00.999000"

depends_on = [genesyscloud_journey_segment.terraform_test_-TEST-CASE-_action_map_dependency]
}

resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_dependency" {
Expand All @@ -45,3 +43,23 @@ resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_d
}
}
}

resource "genesyscloud_journey_outcome" "terraform_test_-TEST-CASE-_action_map_dependency" {
is_active = true
display_name = "terraform_test_-TEST-CASE-_action_map_dependency"
description = "test description of journey outcome"
is_positive = true
journey {
patterns {
criteria {
key = "page.title"
values = ["Title"]
operator = "notEqual"
should_ignore_case = true
}
count = 1
stream_type = "Web"
session_type = "web"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ resource "genesyscloud_journey_action_map" "terraform_test_-TEST-CASE-" {
# optional
ignore_frequency_cap = true
end_date = "2022-08-01T10:30:00.999000"

depends_on = [genesyscloud_journey_segment.terraform_test_-TEST-CASE-_action_map_dependency]
}

resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_dependency" {
Expand All @@ -41,3 +39,23 @@ resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_d
}
}
}

resource "genesyscloud_journey_outcome" "terraform_test_-TEST-CASE-_action_map_dependency" {
is_active = true
display_name = "terraform_test_-TEST-CASE-_action_map_dependency"
description = "test description of journey outcome"
is_positive = true
journey {
patterns {
criteria {
key = "page.title"
values = ["Title"]
operator = "notEqual"
should_ignore_case = true
}
count = 1
stream_type = "Web"
session_type = "web"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ resource "genesyscloud_journey_action_map" "terraform_test_-TEST-CASE-" {
}
# optional
end_date = "2022-08-01T10:30:00.999000"

depends_on = [genesyscloud_journey_segment.terraform_test_-TEST-CASE-_action_map_dependency]
}

resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_dependency" {
Expand All @@ -40,3 +38,23 @@ resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_d
}
}
}

resource "genesyscloud_journey_outcome" "terraform_test_-TEST-CASE-_action_map_dependency" {
is_active = true
display_name = "terraform_test_-TEST-CASE-_action_map_dependency"
description = "test description of journey outcome"
is_positive = true
journey {
patterns {
criteria {
key = "page.title"
values = ["Title"]
operator = "notEqual"
should_ignore_case = true
}
count = 1
stream_type = "Web"
session_type = "web"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ resource "genesyscloud_journey_action_map" "terraform_test_-TEST-CASE-" {
max_quantile_threshold = 0.666
fallback_quantile_threshold = 0.125
}
# optional

depends_on = [genesyscloud_journey_segment.terraform_test_-TEST-CASE-_action_map_dependency]
}

resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_dependency" {
Expand All @@ -39,3 +36,23 @@ resource "genesyscloud_journey_segment" "terraform_test_-TEST-CASE-_action_map_d
}
}
}

resource "genesyscloud_journey_outcome" "terraform_test_-TEST-CASE-_action_map_dependency" {
is_active = true
display_name = "terraform_test_-TEST-CASE-_action_map_dependency"
description = "test description of journey outcome"
is_positive = true
journey {
patterns {
criteria {
key = "page.title"
values = ["Title"]
operator = "notEqual"
should_ignore_case = true
}
count = 1
stream_type = "Web"
session_type = "web"
}
}
}

0 comments on commit aa2c81a

Please sign in to comment.