'{d000e91b-e70f-481b-9549-58de7929bcee}']
source_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../.."))
+provision_path = os.path.join(source_path, "source4/selftest/provisions/")
def has_difference(path1, path2, binary=True, xml=True, sortlines=False):
"""Use this function to determine if the GPO backup differs from another.
def test_backup_restore_compare_binary(self):
"""Restore from a static backup and compare the binary contents"""
+ if not os.path.exists(provision_path):
+ self.skipTest('Test requires provision data not available in '
+ + 'release tarball')
+
static_path = os.path.join(self.backup_path, 'policy',
self.backup_gpo_guid)
"""Restore from a static backup (and use no entity file, resulting in
copy-restore fallback), and compare the binary contents"""
+ if not os.path.exists(provision_path):
+ self.skipTest('Test requires provision data not available in '
+ + 'release tarball')
+
static_path = os.path.join(self.backup_path, 'policy',
self.backup_gpo_guid)
def test_backup_restore_backup_compare_XML(self):
"""Restore from a static backup and backup to compare XML"""
+
+ if not os.path.exists(provision_path):
+ self.skipTest('Test requires provision data not available in '
+ + 'release tarball')
+
static_path = os.path.join(self.backup_path, 'policy',
self.backup_gpo_guid)
def test_backup_restore_generalize(self):
"""Restore from a static backup with different entities, generalize it
again, and compare the XML"""
+
+ if not os.path.exists(provision_path):
+ self.skipTest('Test requires provision data not available in '
+ + 'release tarball')
+
static_path = os.path.join(self.backup_path, 'policy',
self.backup_gpo_guid)