Skip to content

Commit

Permalink
Updated functional test with bug fix for Optum#344
Browse files Browse the repository at this point in the history
  • Loading branch information
AmudaPalani committed May 29, 2020
1 parent 45bd355 commit b004836
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/acceptance/update_lease_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,16 @@ func TestUpdateLeaseStatusLambda(t *testing.T) {
err = json.Unmarshal(result.Payload, &resp)
require.Nil(t, err)

// Check lease status is active
// Check lease status is inactive
lease, err := dbSvc.GetLease(accountID, "user")
require.Nil(t, err)
require.Equal(t, db.LeaseStatus("Inactive"), lease.LeaseStatus)
require.Equal(t, db.LeaseStatusReason("Expired"), lease.LeaseStatusReason)

// Check account status is updated to NotReady
account, err := dbSvc.GetAccount(accountID)
require.Nil(t, err)
require.Equal(t, db.NotReady, account.AccountStatus)
})

t.Run("Exceeded lease budget result in Inactive lease with reason OverBudget.", func(t *testing.T) {
Expand Down

0 comments on commit b004836

Please sign in to comment.