Skip to content

Commit

Permalink
Update testing docs
Browse files Browse the repository at this point in the history
Signed-off-by: innobead <[email protected]>
  • Loading branch information
innobead committed Jan 25, 2024
1 parent aebf581 commit 4788f3a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions integration/test_recurring_job.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h1 class="title">Module <code>tests.test_recurring_job</code></h1>
from common import random_labels, volume_name # NOQA
from common import storage_class, statefulset, pvc # NOQA
from common import make_deployment_with_pvc # NOQA
from common import generate_volume_name

from common import get_self_host_id

Expand Down Expand Up @@ -2019,9 +2020,9 @@ <h1 class="title">Module <code>tests.test_recurring_job</code></h1>
back1 = BACKUP + &#34;1&#34;
back2 = BACKUP + &#34;2&#34;
group1 = &#34;group01&#34;
volume_name1 = &#34;record-recurring-job&#34;
rvolume_name1 = &#34;restore-record-recurring-job-01&#34;
rvolume_name2 = &#34;restore-record-recurring-job-02&#34;
volume_name1 = &#34;record-recur&#34; + &#34;-&#34; + generate_volume_name()
rvolume_name1 = &#34;restore-01&#34; + &#34;-&#34; + generate_volume_name()
rvolume_name2 = &#34;restore-02&#34; + &#34;-&#34; + generate_volume_name()

recurring_jobs = {
back1: {
Expand Down Expand Up @@ -2076,8 +2077,8 @@ <h1 class="title">Module <code>tests.test_recurring_job</code></h1>

complete_backup_1_count = 0
restore_snapshot_name = &#34;&#34;
volume = client.by_id_volume(volume_name1)
wait_for_backup_completion(client, volume_name1)
volume = client.by_id_volume(volume_name1)
for b in volume.backupStatus:
if back1+&#34;-&#34; in b.snapshot:
complete_backup_1_count += 1
Expand Down Expand Up @@ -4251,9 +4252,9 @@ <h1 id="delete-multiple-recurring-jobs-should-reflect-on-the-cron-jobs">Delete m
back1 = BACKUP + &#34;1&#34;
back2 = BACKUP + &#34;2&#34;
group1 = &#34;group01&#34;
volume_name1 = &#34;record-recurring-job&#34;
rvolume_name1 = &#34;restore-record-recurring-job-01&#34;
rvolume_name2 = &#34;restore-record-recurring-job-02&#34;
volume_name1 = &#34;record-recur&#34; + &#34;-&#34; + generate_volume_name()
rvolume_name1 = &#34;restore-01&#34; + &#34;-&#34; + generate_volume_name()
rvolume_name2 = &#34;restore-02&#34; + &#34;-&#34; + generate_volume_name()

recurring_jobs = {
back1: {
Expand Down Expand Up @@ -4308,8 +4309,8 @@ <h1 id="delete-multiple-recurring-jobs-should-reflect-on-the-cron-jobs">Delete m

complete_backup_1_count = 0
restore_snapshot_name = &#34;&#34;
volume = client.by_id_volume(volume_name1)
wait_for_backup_completion(client, volume_name1)
volume = client.by_id_volume(volume_name1)
for b in volume.backupStatus:
if back1+&#34;-&#34; in b.snapshot:
complete_backup_1_count += 1
Expand Down

0 comments on commit 4788f3a

Please sign in to comment.