def test_ShareEbsBackup(self):

        print(f"ebs - Running share backup test")
        ebs_backup_engine = ShelveryEBSBackup()

        print("Creating shared backups")
        backups = initShareBackups(ebs_backup_engine, str(self.share_with_id))

        print("Shared backups created")

        valid = False
        # validate there is
        for backup in backups:
            valid = ec2ShareBackups(self=self, backup=backup)
        self.assertTrue(valid)
示例#2
0
    def test_shareRdsBackup(self):

        print(f"rds - Running share backup test")
        rds_backups_engine = ShelveryRDSBackup()

        backups = initShareBackups(rds_backups_engine, str(self.share_with_id))

        print("Shared backups created")

        valid = False
        # validate there is
        for backup in backups:
            valid = instanceShareBackups(self=self, backup=backup)

        self.assertTrue(valid)
示例#3
0
    def test_ShareEc2AmiBackup(self):

        print(f"ec2 ami - Running share backup test")
        ec2_ami_backup_engine = ShelveryEC2AMIBackup()

        print("Creating shared backups")
        backups = initShareBackups(ec2_ami_backup_engine,
                                   str(self.share_with_id))

        print("Shared backups created")

        valid = False
        # validate there is
        for backup in backups:
            valid = ec2ShareBackups(
                self=self,
                backup=backup,
            )
        self.assertTrue(valid)
示例#4
0
    def test_ShareRdsClusterBackup(self):

        print(f"rds cluster - Running share backup test")
        rds_cluster_backup_engine = ShelveryRDSClusterBackup()

        print("Creating shared backups")
        backups = initShareBackups(rds_cluster_backup_engine,
                                   str(self.share_with_id))

        print("Shared backups created")

        valid = False
        # validate there is
        for backup in backups:
            valid = clusterShareBackups(self=self,
                                        backup=backup,
                                        service='rds')

        self.assertTrue(valid)
    def test_ShareDocDbBackup(self):
        print(f"doc db - Running share backup test")
        docdb_cluster_backup_engine = ShelveryDocumentDbBackup()

        print("Creating shared backups")
        backups = initShareBackups(docdb_cluster_backup_engine, str(self.share_with_id))

        print("Shared backups created")

        valid = False
        # validate there is
        for backup in backups:
            valid = clusterShareBackups(self=self,
                                       backup=backup,
                                       service='docdb'
            )

        

        self.assertTrue(valid)