Skip to content

Commit

Permalink
fixes typo in test causing it to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-g committed Sep 7, 2023
1 parent 919db1c commit b3251fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/providers/cps/data_akamai_cps_enrollment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,9 @@ func checkChallenges(changes *cps.Change, dvArray *cps.DVArray) resource.TestChe

func checkPendingChangesEnrollment(en *cps.Enrollment) resource.TestCheckFunc {
if len(en.PendingChanges) > 0 {
return resource.TestCheckResourceAttr("data.akamai_cps_enrollment.test", "enrollment.pending_changes", "true")
return resource.TestCheckResourceAttr("data.akamai_cps_enrollment.test", "pending_changes", "true")
}

return resource.TestCheckResourceAttr("data.akamai_cps_enrollment.test", "enrollment.pending_changes", "false")
return resource.TestCheckResourceAttr("data.akamai_cps_enrollment.test", "pending_changes", "false")
}

func calculateNumberOfChanges(dvArray *cps.DVArray, changeType string) int {
Expand Down

0 comments on commit b3251fe

Please sign in to comment.