Changeset 41061
- Timestamp:
- Nov 5, 2019, 10:58:32 AM (7 years ago)
- Location:
- branches/ipp-350_add_to_jira_conf_backups
- Files:
-
- 6 edited
-
confluence_backup.py (modified) (1 diff)
-
confluence_backup_test.py (modified) (3 diffs)
-
jira_backup.py (modified) (1 diff)
-
jira_backup_test.py (modified) (3 diffs)
-
testing/confluence_test.config (modified) (1 diff)
-
testing/jira_test.config (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-350_add_to_jira_conf_backups/confluence_backup.py
r41059 r41061 38 38 , ConfigSchemaLine('additional_args', False, list, 39 39 cfg_help.SpecialSchemaProcessing.space_separated) 40 , ConfigSchemaLine('sub-dirs', False, list, 41 cfg_help.SpecialSchemaProcessing.commma_separated) 40 42 ]) 41 43 , ConfigSchemaSection('MYSQLDUMP', -
branches/ipp-350_add_to_jira_conf_backups/confluence_backup_test.py
r41059 r41061 39 39 f"{os.path.join(tmpdir, 'rsync_source_dir2')}") 40 40 , 'additional_args' : '-a --delete-after' 41 , 'sub-dirs' : 'conf_subdir1, conf_subdir2' 41 42 } 42 43 config['MYSQLDUMP'] = \ … … 308 309 class TestRsyncOfFiles(object): 309 310 310 def test_confluence_rsync (self, tmpdir):311 def test_confluence_rsync_with_subdirs(self, tmpdir): 311 312 """This should be similar to the regular Backup version""" 312 313 create_items_for_full_confluence_backup_test(tmpdir) … … 316 317 317 318 # Expected resulting rsync directories 318 expected_confluence_host_rsync1 = os.path.join(tmpdir, "host_backup_path", " rsync_source_dir1")319 expected_confluence_bak1_rsync1 = os.path.join(tmpdir, "backup_1_path", " rsync_source_dir1")320 expected_confluence_bak2_rsync1 = os.path.join(tmpdir, "backup_2_path", " rsync_source_dir1")321 expected_confluence_host_rsync2 = os.path.join(tmpdir, "host_backup_path", " rsync_source_dir2")322 expected_confluence_bak1_rsync2 = os.path.join(tmpdir, "backup_1_path", " rsync_source_dir2")323 expected_confluence_bak2_rsync2 = os.path.join(tmpdir, "backup_2_path", " rsync_source_dir2")319 expected_confluence_host_rsync1 = os.path.join(tmpdir, "host_backup_path", "conf_subdir1", "rsync_source_dir1") 320 expected_confluence_bak1_rsync1 = os.path.join(tmpdir, "backup_1_path", "conf_subdir1", "rsync_source_dir1") 321 expected_confluence_bak2_rsync1 = os.path.join(tmpdir, "backup_2_path", "conf_subdir1", "rsync_source_dir1") 322 expected_confluence_host_rsync2 = os.path.join(tmpdir, "host_backup_path", "conf_subdir2", "rsync_source_dir2") 323 expected_confluence_bak1_rsync2 = os.path.join(tmpdir, "backup_1_path", "conf_subdir2", "rsync_source_dir2") 324 expected_confluence_bak2_rsync2 = os.path.join(tmpdir, "backup_2_path", "conf_subdir2", "rsync_source_dir2") 324 325 assert not os.path.exists(expected_confluence_host_rsync1) 325 326 assert not os.path.exists(expected_confluence_bak1_rsync1) -
branches/ipp-350_add_to_jira_conf_backups/jira_backup.py
r41059 r41061 38 38 , ConfigSchemaLine('additional_args', False, list, 39 39 cfg_help.SpecialSchemaProcessing.space_separated) 40 , ConfigSchemaLine('sub-dirs', False, list, 41 cfg_help.SpecialSchemaProcessing.commma_separated) 40 42 ]) 41 43 , ConfigSchemaSection('MYSQLDUMP', -
branches/ipp-350_add_to_jira_conf_backups/jira_backup_test.py
r41059 r41061 38 38 f"{os.path.join(tmpdir, 'rsync_source_dir2')}") 39 39 , 'additional_args' : '-a --delete-after' 40 , 'sub-dirs' : 'jira_subdir1, jira_subdir2' 40 41 } 41 42 config['MYSQLDUMP'] = \ … … 309 310 class TestRsyncOfFiles(object): 310 311 311 def test_jira_rsync (self, tmpdir):312 def test_jira_rsync_with_subdirs(self, tmpdir): 312 313 """This should be similar to the regular Backup version""" 313 314 create_items_for_full_jira_backup_test(tmpdir) … … 317 318 318 319 # 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") 325 326 assert not os.path.exists(expected_jira_host_rsync1) 326 327 assert not os.path.exists(expected_jira_bak1_rsync1) -
branches/ipp-350_add_to_jira_conf_backups/testing/confluence_test.config
r41059 r41061 20 20 sources = /opt/atlassian, /var/atlassian 21 21 additional_args = -a --delete-after 22 sub-dirs = conf-install, conf-home 22 23 23 24 [MYSQLDUMP] -
branches/ipp-350_add_to_jira_conf_backups/testing/jira_test.config
r41059 r41061 19 19 sources = /opt/atlassian, /var/atlassian 20 20 additional_args = -a --delete-after 21 sub-dirs = jira-install, jira-home 21 22 22 23 [MYSQLDUMP]
Note:
See TracChangeset
for help on using the changeset viewer.
