Skip to content

fix(monitor-secure-alerts): replace urls in prometheus alert-manager tests#725

Merged
the-pierfra merged 1 commit intomasterfrom
fix/SMPROD-20417-prometheus-alert-manager-test-url
Apr 15, 2026
Merged

fix(monitor-secure-alerts): replace urls in prometheus alert-manager tests#725
the-pierfra merged 1 commit intomasterfrom
fix/SMPROD-20417-prometheus-alert-manager-test-url

Conversation

@the-pierfra
Copy link
Copy Markdown
Collaborator

@the-pierfra the-pierfra commented Apr 15, 2026

Updates Prometheus Alertmanager notification channel acceptance tests to use a stable, DNS-resolving placeholder domain so channel creation no longer fails due to URL validation.

Changes:

  • Replaced https://testurl.com/xxx with https://example.com/test in Secure resource acceptance tests.
  • Replaced https://testurl.com/xxx with https://example.com/test in Monitor resource acceptance tests.
    Updated both Secure and Monitor data source acceptance tests to use the same stable URL.

…theus alert manager tests

Backend now validates DNS resolution on notification channel URLs at
creation time. testurl.com no longer resolves, causing test failures.
example.com is IANA-reserved (RFC 2606) and guaranteed stable.
Copilot AI review requested due to automatic review settings April 15, 2026 14:22
@the-pierfra the-pierfra self-assigned this Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Prometheus Alertmanager notification channel acceptance tests to use a stable, DNS-resolving placeholder domain so channel creation no longer fails due to URL validation.

Changes:

  • Replaced https://testurl.com/xxx with https://example.com/test in Secure resource acceptance tests.
  • Replaced https://testurl.com/xxx with https://example.com/test in Monitor resource acceptance tests.
  • Updated both Secure and Monitor data source acceptance tests to use the same stable URL.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
sysdig/resource_sysdig_secure_notification_channel_prometheus_alert_manager_test.go Updates placeholder URL in Secure Prometheus Alertmanager resource acceptance tests.
sysdig/resource_sysdig_monitor_notification_channel_prometheus_alert_manager_test.go Updates placeholder URL in Monitor Prometheus Alertmanager resource acceptance tests.
sysdig/data_source_sysdig_secure_notification_channel_prometheus_alert_manager_test.go Updates placeholder URL in Secure Prometheus Alertmanager data source acceptance test config.
sysdig/data_source_sysdig_monitor_notification_channel_prometheus_alert_manager_test.go Updates placeholder URL in Monitor Prometheus Alertmanager data source acceptance test config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@the-pierfra the-pierfra added this pull request to the merge queue Apr 15, 2026
Merged via the queue into master with commit 2498632 Apr 15, 2026
183 checks passed
@the-pierfra the-pierfra deleted the fix/SMPROD-20417-prometheus-alert-manager-test-url branch April 15, 2026 15:29
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

Successfully merging this pull request may close these issues.

4 participants