Пример #1
0
 def test_handler(*unused):
     # publish
     self.populate(ssl=True)
     pulp_conf.set('server', 'storage_dir', self.upfs)
     dist = CitrusHttpDistributor()
     repo = Repository(self.REPO_ID)
     conduit = RepoPublishConduit(self.REPO_ID, CITRUS_DISTRUBUTOR)
     dist.publish_repo(repo, conduit, self.dist_conf())
     units = []
     options = {}
     handler = NodeHandler(self)
     pulp_conf.set('server', 'storage_dir', self.downfs)
     report = handler.update(Conduit(), units, options)
     _report.append(report)
Пример #2
0
 def test_handler(*unused):
     # publish
     self.populate()
     pulp_conf.set('server', 'storage_dir', self.upfs)
     dist = CitrusHttpDistributor()
     repo = Repository(self.REPO_ID)
     cfg = {
         'protocol':'file',
         'http':{'alias':self.alias},
         'https':{'alias':self.alias},
         'file':{'alias':self.alias},
     }
     conduit = RepoPublishConduit(self.REPO_ID, CITRUS_DISTRUBUTOR)
     dist.publish_repo(repo, conduit, cfg)
     units = []
     options = {}
     handler = NodeHandler(self)
     pulp_conf.set('server', 'storage_dir', self.downfs)
     os.makedirs(os.path.join(self.downfs, 'content'))
     report = handler.update(Conduit(), units, options)
     _report.append(report)