def test__remove_repository_protection(self, delete_protected_repo):
        repo = MagicMock()
        repo.id = 'reporeporeporepo'

        publish.remove_repository_protection(repo)

        delete_protected_repo.assert_called_once_with(publish._get_relative_path(repo))
Ejemplo n.º 2
0
    def test__remove_repository_protection(self, delete_protected_repo):
        repo = MagicMock()
        repo.id = 'reporeporeporepo'

        publish.remove_repository_protection(repo)

        delete_protected_repo.assert_called_once_with(
            publish._get_relative_path(repo))
Ejemplo n.º 3
0
    def unpublish_repo(self, transfer_repo, config):
        """
        Perform actions necessary when upublishing a repo

        Please also see the superclass method definition for more documentation on this method.

        :param transfer_repo: metadata describing the repo
        :type  transfer_repo: pulp.plugins.model.Repository

        :param config: plugin configuration
        :type  config: pulp.plugins.config.PluginCallConfiguration
        """
        super(ISODistributor, self).unpublish_repo(transfer_repo, config)
        publish.remove_repository_protection(transfer_repo.repo_obj)
Ejemplo n.º 4
0
    def unpublish_repo(self, transfer_repo, config):
        """
        Perform actions necessary when upublishing a repo

        Please also see the superclass method definition for more documentation on this method.

        :param transfer_repo: metadata describing the repo
        :type  transfer_repo: pulp.plugins.model.Repository

        :param config: plugin configuration
        :type  config: pulp.plugins.config.PluginCallConfiguration
        """
        super(ISODistributor, self).unpublish_repo(transfer_repo, config)
        publish.remove_repository_protection(transfer_repo.repo_obj)