Skip to content

Commit

Permalink
removed duty location audit check from sm
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Jan 25, 2024
1 parent 3b28047 commit 1640a1a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/services/move_history/move_history_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,23 +668,14 @@ func (suite *MoveHistoryServiceSuite) TestMoveHistoryFetcherScenarios() {
suite.NoError(err)

verifyServiceMemberHistoryFound := false
verifyServiceMemberContextFound := false

for _, h := range moveHistoryData.AuditHistories {
if h.AuditedTable == "service_members" && *h.ObjectID == serviceMember.ID {
verifyServiceMemberHistoryFound = true

if h.Context != nil {
context := removeEscapeJSONtoArray(h.Context)
if context[0]["current_duty_location_name"] != "" {
verifyServiceMemberContextFound = true
}
}
break
}
}
suite.True(verifyServiceMemberHistoryFound, "AuditHistories contains an AuditHistory when a service member is created")
suite.True(verifyServiceMemberContextFound, "Service member creation AuditHistory contains a context with current duty location name")
})

suite.Run("has audit history records for mto_agents", func() {
Expand Down

0 comments on commit 1640a1a

Please sign in to comment.