Skip to content

Commit

Permalink
Snapshot backup option has been removed in 6.16
Browse files Browse the repository at this point in the history
  • Loading branch information
jameerpathan111 committed Apr 15, 2024
1 parent 4a1c2e3 commit bae5609
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
7 changes: 0 additions & 7 deletions robottelo/cli/sm_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
backup-online-safety-confirmation Data consistency warning
backup-prepare-directory Prepare backup Directory
backup-pulp Backup Pulp data
backup-snapshot-clean-mount Remove the snapshot mount points
backup-snapshot-logical-volume-confirmation Check if backup is on different LV then the source
backup-snapshot-mount-candlepin-db Create and mount snapshot of Candlepin DB
backup-snapshot-mount-foreman-db Create and mount snapshot of Foreman DB
backup-snapshot-mount-pulp Create and mount snapshot of Pulp data
backup-snapshot-mount-pulpcore-db Create and mount snapshot of Pulpcore DB
backup-snapshot-prepare-mount Prepare mount point for the snapshot
content-migration-reset Reset the Pulp 2 to Pulp 3 migration data (pre-switchover)
content-migration-stats Retrieve Pulp 2 to Pulp 3 migration statistics
content-prepare Prepare content for Pulp 3
Expand Down
3 changes: 1 addition & 2 deletions robottelo/cli/sm_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Subcommands:
online Keep services online during backup
offline Shut down services to preserve consistent backup
snapshot Use snapshots of the databases to create backup
Options:
-h, --help print help
Expand All @@ -24,7 +23,7 @@ class Backup(Base):

@classmethod
def run_backup(cls, backup_dir='/tmp/', backup_type='online', options=None, timeout=None):
"""Build satellite-maintain backup online/offline/snapshot"""
"""Build satellite-maintain backup online/offline"""
cls.command_sub = backup_type
cls.command_end = backup_dir
options = options or {}
Expand Down
4 changes: 2 additions & 2 deletions tests/foreman/maintain/test_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def test_negative_backup_maintenance_mode(sat_maintain, setup_backup_tests):
:parametrized: yes
:steps:
1. try to create a snapshot backup which would fail
1. try to create an online backup which would fail
:expectedresults:
1. Verify maintenance-mode isn't running if backup fails
Expand All @@ -347,7 +347,7 @@ def test_negative_backup_maintenance_mode(sat_maintain, setup_backup_tests):
subdir = f'{BACKUP_DIR}backup-{gen_string("alpha")}'
result = sat_maintain.cli.Backup.run_backup(
backup_dir=subdir,
backup_type='snapshot',
backup_type='online',
options={'assumeyes': True, 'plaintext': True},
)
assert result.status != 0
Expand Down

0 comments on commit bae5609

Please sign in to comment.