Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uptrends_monitor_web match_pattern block has no effect #70

Open
PaulLangley opened this issue Jul 14, 2023 · 0 comments
Open

uptrends_monitor_web match_pattern block has no effect #70

PaulLangley opened this issue Jul 14, 2023 · 0 comments

Comments

@PaulLangley
Copy link

Hi there,

Terraform Version

% terraform -v
Terraform v1.5.2

Affected Resource(s)

Please list the resources as a list, for example:

  • uptrends_monitor_web

Terraform Configuration Files

resource "uptrends_monitor_web" "test" {
  type                     = "Https"
  name                     = "Google Test"
  url                      = "https://www.google.com"
  check_interval           = 5
  primary_checkpoints_only = true
  generate_alert           = false

  expected_http_status_code = 200

  match_pattern {
    is_positive = true
    pattern     = "Some text here"
  }

  selected_checkpoints {
  ...
  }
}

Expected Behavior

  • HTTP status code match field should be set to "200"
  • Checkpage content field should have value "Some text here"

Actual Behavior

  • HTTP status code match field is blank
  • Checkpage content field is blank
  • Terraform continually tries to apply the broken block
    + match_pattern {
    + is_positive = true
    + pattern = "Some text here"
    }

Also, the docs for match_pattern do not match what is required to be passed, e.g.

Docs
match_pattern = "blah"

Required
match_pattern {
is_positive = true
pattern = "Some text here"
}

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant