Exemplo n.º 1
0
    def setUp(self):
        manager_factory.initialize()

        self.repo_id = 'dsp-repo'
        self.distributor_id = 'dsp-distributor'
        self.mixin = mixins.DistributorScratchPadMixin(self.repo_id,
                                                       self.distributor_id)
Exemplo n.º 2
0
    def setUp(self, mock_get_working_directory):
        super(DistributorScratchpadMixinTests, self).setUp()
        mock_plugins.install()
        repo_id = 'repo-1'
        with mock.patch(
                'pulp.server.controllers.distributor.model.Repository'):
            dist_controller.add_distributor(repo_id,
                                            'mock-distributor', {},
                                            True,
                                            distributor_id='test-distributor')

        self.conduit = mixins.DistributorScratchPadMixin(
            repo_id, 'test-distributor')
Exemplo n.º 3
0
    def setUp(self, mock_get_working_directory):
        super(DistributorScratchpadMixinTests, self).setUp()
        mock_plugins.install()

        self.repo_manager = RepoManager()
        self.distributor_manager = RepoDistributorManager()

        repo_id = 'repo-1'
        self.repo_manager.create_repo(repo_id)
        self.distributor_manager.add_distributor(repo_id, 'mock-distributor', {}, True,
                                                 distributor_id='test-distributor')

        self.conduit = mixins.DistributorScratchPadMixin(repo_id, 'test-distributor')