示例#1
0
 def delete_credentials(self):
     """
     Delete AWS credentials allocated for ingest.
     """
     ingest_creds = IngestCredentials()
     ingest_creds.remove_credentials(self.job['task_id'])
     if not BossUtil.delete_ingest_policy(self.job['task_id']):
         log.error('Failed to delete credentials for job: {}'.format(
             self.job['task_id']))
示例#2
0
 def test_delete_ingest_policy(self, boss_util_fixtures):
     self._setup(boss_util_fixtures)
     BossUtil.generate_ingest_policy(
         self.job_id,
         self.upload_queue,
         self.tile_index_queue,
         self.tile_bucket.bucket.name,
     )
     assert BossUtil.delete_ingest_policy(self.job_id)
示例#3
0
    def remove_ingest_credentials(self, job_id):
        """
        Remove the ingest credentials for a job
        Args:
            job_id: The id of the ingest job

        Returns:
            status
        """
        # Create the credentials for the job
        ingest_creds = IngestCredentials()
        ingest_creds.remove_credentials(job_id)
        status = BossUtil.delete_ingest_policy(job_id)
        return status
示例#4
0
    def remove_ingest_credentials(self, job_id):
        """
        Remove the ingest credentials for a job
        Args:
            job_id: The id of the ingest job

        Returns:
            status
        """
        # Create the credentials for the job
        ingest_creds = IngestCredentials()
        ingest_creds.remove_credentials(job_id)
        status = BossUtil.delete_ingest_policy(job_id)
        return status