Alerting: Fix remote Alertmanager integration tests (CI/Makefile) (#78541)
* Alerting: Fix remote Alertmanager integration tests (CI/Makefile)
This commit is contained in:
+4
-4
@@ -975,7 +975,7 @@ steps:
|
|||||||
- commands:
|
- commands:
|
||||||
- apk add --update build-base
|
- apk add --update build-base
|
||||||
- go clean -testcache
|
- go clean -testcache
|
||||||
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/notifier/...
|
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/...
|
||||||
depends_on:
|
depends_on:
|
||||||
- wire-install
|
- wire-install
|
||||||
- wait-for-remote-alertmanager
|
- wait-for-remote-alertmanager
|
||||||
@@ -2326,7 +2326,7 @@ steps:
|
|||||||
- commands:
|
- commands:
|
||||||
- apk add --update build-base
|
- apk add --update build-base
|
||||||
- go clean -testcache
|
- go clean -testcache
|
||||||
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/notifier/...
|
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/...
|
||||||
depends_on:
|
depends_on:
|
||||||
- wire-install
|
- wire-install
|
||||||
- wait-for-remote-alertmanager
|
- wait-for-remote-alertmanager
|
||||||
@@ -3989,7 +3989,7 @@ steps:
|
|||||||
- commands:
|
- commands:
|
||||||
- apk add --update build-base
|
- apk add --update build-base
|
||||||
- go clean -testcache
|
- go clean -testcache
|
||||||
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/notifier/...
|
- go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/...
|
||||||
depends_on:
|
depends_on:
|
||||||
- wire-install
|
- wire-install
|
||||||
- wait-for-remote-alertmanager
|
- wait-for-remote-alertmanager
|
||||||
@@ -4685,6 +4685,6 @@ kind: secret
|
|||||||
name: gcr_credentials
|
name: gcr_credentials
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: e5f8ac3263b36e17d1b6c0b4ec7f9658babff30065f4742d3b570a918e1f680d
|
hmac: 64302d9316abab775d7ec1132f26ea4f1829558fa0bfd85812597182c1abe61a
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ test-go-integration-alertmanager: ## Run integration tests for the remote alertm
|
|||||||
@echo "test remote alertmanager integration tests"
|
@echo "test remote alertmanager integration tests"
|
||||||
$(GO) clean -testcache
|
$(GO) clean -testcache
|
||||||
AM_URL=http://localhost:8080 AM_TENANT_ID=test AM_PASSWORD=test \
|
AM_URL=http://localhost:8080 AM_TENANT_ID=test AM_PASSWORD=test \
|
||||||
$(GO) test -count=1 -run "^TestIntegrationRemoteAlertmanager" -covermode=atomic -timeout=5m ./pkg/services/ngalert/notifier/...
|
$(GO) test -count=1 -run "^TestIntegrationRemoteAlertmanager" -covermode=atomic -timeout=5m ./pkg/services/ngalert/...
|
||||||
|
|
||||||
.PHONY: test-go-integration-postgres
|
.PHONY: test-go-integration-postgres
|
||||||
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
|
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
|
||||||
|
|||||||
@@ -966,7 +966,7 @@ def redis_integration_tests_steps():
|
|||||||
def remote_alertmanager_integration_tests_steps():
|
def remote_alertmanager_integration_tests_steps():
|
||||||
cmds = [
|
cmds = [
|
||||||
"go clean -testcache",
|
"go clean -testcache",
|
||||||
"go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/notifier/...",
|
"go test -run TestIntegrationRemoteAlertmanager -covermode=atomic -timeout=2m ./pkg/services/ngalert/...",
|
||||||
]
|
]
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
|||||||
Reference in New Issue
Block a user