TP-54495 | Removed @here in rca generation message (#351)

* TP-38709 | Merging the changes to master on the logfix

* TP-54495 | Removed @here in rca generation message
This commit is contained in:
Ajay Devarakonda
2024-01-17 12:03:12 +05:30
committed by GitHub
parent 8e7619f972
commit bc21096b6e
2 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ func (r *RcaService) PostRcaToIncidentChannel(postRcaRequest service.PostRcaRequ
}
_, err = r.slackService.PostMessageByChannelID(
fmt.Sprintf("<!here> System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", successData.RcaLink),
fmt.Sprintf("System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", successData.RcaLink),
false,
incidentEntity.SlackChannel,
)

View File

@@ -64,7 +64,7 @@ func TestRcaService_PostRcaToIncidentChannel_Success(t *testing.T) {
rcaRepository.UpdateRcaMock.When(testRca).Then(nil)
slackService.PostMessageByChannelIDMock.When(
fmt.Sprintf("<!here> System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", "test_link"),
fmt.Sprintf("System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", "test_link"),
false,
"1234",
).Then("", nil)
@@ -176,7 +176,7 @@ func TestRcaService_PostRcaToIncidentChannel_SlackFailure_RcaSuccessCase(t *test
rcaRepository.UpdateRcaMock.When(testRca).Then(nil)
slackService.PostMessageByChannelIDMock.When(
fmt.Sprintf("<!here> System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", "test_link"),
fmt.Sprintf("System generated *DRAFT* version of RCA for this incident can be viewed *<%s|here>*", "test_link"),
false,
"1234",
).Then("", errors.New("failed to send message"))