Skip to content

Commit

Permalink
Added pvc name in the log message
Browse files Browse the repository at this point in the history
Signed-off-by: Parag Kamble <[email protected]>
  • Loading branch information
paraggit committed Nov 19, 2024
1 parent 26bb6bc commit b49c6f5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def test_disable_reclaimspace_operation(self, multi_pvc_factory, pod_factory):
reclaimspace_cronjob = get_reclaimspacecronjob_for_pvc(pvc)
suspend_state = reclaimspace_cronjob.data["spec"].get("suspend", False)

assert suspend_state, "reclaimspacecronjob state is not in suspened state"
assert (
suspend_state
), "reclaimspacecronjob state is not in suspened state for the PVC: {pvc.name}"

# ReEnable the reclaimspace Operation for PVC
log.info("Changing reclaimspace cronjob status to Enable for all PVC object.")
Expand All @@ -73,4 +75,4 @@ def test_disable_reclaimspace_operation(self, multi_pvc_factory, pod_factory):

assert (
not suspend_state
), "reclaimspace cronjob state is still in suspened state"
), "reclaimspace cronjob state is still in suspened state for the PVC: {pvc.name}"

0 comments on commit b49c6f5

Please sign in to comment.