Skip to content

Commit

Permalink
Merge pull request #1918 from alastairtree/patch-1
Browse files Browse the repository at this point in the history
Update resource_arm_logic_app_trigger_http_request.go
  • Loading branch information
katbyte authored Sep 13, 2018
2 parents 8e0d2c8 + 3485c1e commit 060d265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_logic_app_trigger_http_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ func resourceArmLogicAppTriggerHttpRequestDelete(d *schema.ResourceData, meta in
func validateLogicAppTriggerHttpRequestRelativePath(v interface{}, k string) (ws []string, errors []error) {
value := v.(string)

r, _ := regexp.Compile("^[A-Za-z0-9_]+$")
r, _ := regexp.Compile("^[A-Za-z0-9_/}{]+$")
if !r.MatchString(value) {
errors = append(errors, fmt.Errorf("Relative Path can only contain alphanumeric characters and underscores."))
errors = append(errors, fmt.Errorf("Relative Path can only contain alphanumeric characters, underscores, forward slashes and curly braces."))
}

return
Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_logic_app_trigger_http_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestAccAzureRMLogicAppTriggerHttpRequest_relativePath(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMLogicAppTriggerExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "method", "POST"),
resource.TestCheckResourceAttr(resourceName, "relative_path", "hello_there"),
resource.TestCheckResourceAttr(resourceName, "relative_path", "customers/{id}"),
),
},
},
Expand Down Expand Up @@ -178,7 +178,7 @@ resource "azurerm_logic_app_trigger_http_request" "test" {
logic_app_id = "${azurerm_logic_app_workflow.test.id}"
schema = "{}"
method = "POST"
relative_path = "hello_there"
relative_path = "customers/{id}"
}
`, template)
}
Expand Down

0 comments on commit 060d265

Please sign in to comment.