This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
ProblemEventHandler
sends `sh.keptn.event.[STAGE].remediation.…
…triggered` event even if stage is not set (#672) * fix: Drop open problem events with no stage Signed-off-by: Arthur Pitman <[email protected]> * Force PR title as commit message Signed-off-by: Arthur Pitman <[email protected]>
- Loading branch information
1 parent
fc9bdc5
commit ac06bf8
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
internal/problem/testdata/open_problem_no_stage/received_ce.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"data": { | ||
"ImpactedEntities": [ | ||
{ | ||
"entity": "HOST-XXXXXXXXXXXXX", | ||
"name": "MyHost1", | ||
"type": "HOST" | ||
}, | ||
{ | ||
"entity": "SERVICE-XXXXXXXXXXXXX", | ||
"name": "MyService1", | ||
"type": "SERVICE" | ||
} | ||
], | ||
"ImpactedEntity": "Myhost1, Myservice1", | ||
"KeptnProject": "shop", | ||
"KeptnStage": "", | ||
"KeptnService": "carts", | ||
"PID": "99999", | ||
"ProblemDetails": { | ||
"id": "99999" | ||
}, | ||
"ProblemID": "999", | ||
"ProblemTitle": "Dynatrace problem notification test run", | ||
"ProblemURL": "https://example.com", | ||
"State": "OPEN", | ||
"Tags": "testtag1, testtag2" | ||
}, | ||
"id": "343cd015-72ac-4e10-b241-1136a22e4cd0", | ||
"source": "dynatrace", | ||
"specversion": "1.0", | ||
"time": "2022-01-04T21:58:45.263Z", | ||
"type": "sh.keptn.events.problem", | ||
"shkeptncontext": "39393939-3920-4020-a020-202020202020", | ||
"shkeptnspecversion": "0.2.3" | ||
} |