IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2019, 10:58:32 AM (7 years ago)
Author:
fairlamb
Message:

test for subdirs with jira-conf rsyncs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ipp-350_add_to_jira_conf_backups/jira_backup_test.py

    r41059 r41061  
    3838                       f"{os.path.join(tmpdir, 'rsync_source_dir2')}")
    3939        , 'additional_args' : '-a --delete-after'
     40        , 'sub-dirs' : 'jira_subdir1, jira_subdir2'
    4041        }
    4142    config['MYSQLDUMP'] = \
     
    309310class TestRsyncOfFiles(object):
    310311
    311     def test_jira_rsync(self, tmpdir):
     312    def test_jira_rsync_with_subdirs(self, tmpdir):
    312313        """This should be similar to the regular Backup version"""
    313314        create_items_for_full_jira_backup_test(tmpdir)
     
    317318
    318319        # Expected resulting rsync directories
    319         expected_jira_host_rsync1 = os.path.join(tmpdir, "host_backup_path", "rsync_source_dir1")
    320         expected_jira_bak1_rsync1 = os.path.join(tmpdir, "backup_1_path",    "rsync_source_dir1")
    321         expected_jira_bak2_rsync1 = os.path.join(tmpdir, "backup_2_path",    "rsync_source_dir1")
    322         expected_jira_host_rsync2 = os.path.join(tmpdir, "host_backup_path", "rsync_source_dir2")
    323         expected_jira_bak1_rsync2 = os.path.join(tmpdir, "backup_1_path",    "rsync_source_dir2")
    324         expected_jira_bak2_rsync2 = os.path.join(tmpdir, "backup_2_path",    "rsync_source_dir2")
     320        expected_jira_host_rsync1 = os.path.join(tmpdir, "host_backup_path", "jira_subdir1", "rsync_source_dir1")
     321        expected_jira_bak1_rsync1 = os.path.join(tmpdir, "backup_1_path",    "jira_subdir1", "rsync_source_dir1")
     322        expected_jira_bak2_rsync1 = os.path.join(tmpdir, "backup_2_path",    "jira_subdir1", "rsync_source_dir1")
     323        expected_jira_host_rsync2 = os.path.join(tmpdir, "host_backup_path", "jira_subdir2", "rsync_source_dir2")
     324        expected_jira_bak1_rsync2 = os.path.join(tmpdir, "backup_1_path",    "jira_subdir2", "rsync_source_dir2")
     325        expected_jira_bak2_rsync2 = os.path.join(tmpdir, "backup_2_path",    "jira_subdir2", "rsync_source_dir2")
    325326        assert not os.path.exists(expected_jira_host_rsync1)
    326327        assert not os.path.exists(expected_jira_bak1_rsync1)
Note: See TracChangeset for help on using the changeset viewer.