Skip to content

Commit

Permalink
test(robot): fix recurring job test cases for v2 volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Dec 16, 2024
1 parent c8516c1 commit dae3cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/libs/recurringjob/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def _check_snapshot_created(self, volume_name, job_name):
# but job_name is in spec.labels.RecurringJob
# and crd doesn't support field selector
# so need to filter by ourselves
if 'RecurringJob' in item['status']['labels'] and \
item['status']['labels']['RecurringJob'] == job_name and \
if 'RecurringJob' in item['spec']['labels'] and \
item['spec']['labels']['RecurringJob'] == job_name and \
item['status']['readyToUse'] == True:
snapshot_time = item['metadata']['creationTimestamp']
snapshot_time = datetime.strptime(snapshot_time, '%Y-%m-%dT%H:%M:%SZ')
Expand Down

0 comments on commit dae3cad

Please sign in to comment.