{"push_id":2856598995,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"f8a21c390aacbc1edb904439d48595b83f6142c8","before":"84eca9f0a1c7142e579cb07bf8705a648b95521e","commits":[{"sha":"52561d988e2eadc56782570d3a00281f07f40ece","author":{"name":"Daniel Alley","email":"bb4e8d26b50c9184109cd922f88902dd38d79fb1@redhat.com"},"message":"Fix get*_content methods for repositories with no versions\n\nIf a repository has no versions, then _latest_version_href will be null,\nin which case, there will not be a valid content href to look up.","distinct":true,"url":"https://api.github.com/repos/kersommoura/pulp-smash/commits/52561d988e2eadc56782570d3a00281f07f40ece"},{"sha":"f8a21c390aacbc1edb904439d48595b83f6142c8","author":{"name":"Bruno Rocha","email":"3280ed4dae8bbebb880f468624df820e7e6ccccd@gmail.com"},"message":"Added a `sudo` argument to method `cli.Client.run` to avoid boilerplate.\n\nAs part of our `less boilerplate` effort I added a new method `sudo` argument\nto `cli.Client.run`.\n\nIn a lot of test cases there are code like:\n\n```python\nsudo = () if cli.is_root(cfg) else ('sudo',)\n...\nclient.run(sudo + ('command_name', 'argument1', ...))\n```\n\nThe idea is to replace the above boilerplate with\n\n```python\nclient.run(('command_name', 'argument1', ...), sudo=True)\n```\n\nWith this change we will be able to remove the `sudo = () if cli.is_root(cfg) else ('sudo',)` boilerplate in those Pulp-2-tests referenced:\n\n```bash\n\npulp_2_tests/tests/docker/utils.py:    sudo = '' if cli.is_root(cfg) else 'sudo'\npulp_2_tests/tests/puppet/api_v2/test_install_distributor.py:        sudo = () if cli.is_root(self.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_content_sources.py:        sudo = () if cli.is_root(cls.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_content_sources.py:        sudo = () if cli.is_root(cls.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_content_sources.py:    sudo = '' if cli.is_root(cfg) else 'sudo'\npulp_2_tests/tests/rpm/api_v2/test_crud.py:        sudo = () if cli.is_root(self.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_download_policies.py:        sudo = '' if cli.is_root(cls.cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/test_errata.py:        # sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_errata.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_export.py:        self.__sudo = None\npulp_2_tests/tests/rpm/api_v2/test_export.py:            self.__sudo = '' if cli.is_root(self.cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/test_iso_sync_publish.py:        sudo = () if cli.is_root(self.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_modularity.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_republish.py:        sudo = () if cli.is_root(self.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_rich_weak_dependencies.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_rsync_distributor.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_rsync_distributor.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/test_rsync_distributor.py:        sudo = '' if cli.is_root(cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/test_service_resiliency.py:        sudo = '' if cli.is_root(self.cfg) else 'sudo'\npulp_2_tests/tests/rpm/api_v2/test_service_resiliency.py:        sudo = () if cli.is_root(self.cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/utils.py:        sudo = '' if cli.is_root(cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/utils.py:        sudo = '' if cli.is_root(cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/utils.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/api_v2/utils.py:        sudo = '' if cli.is_root(cfg) else 'sudo '\npulp_2_tests/tests/rpm/api_v2/utils.py:    sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/cli/test_copy_units.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/cli/test_process_recycling.py:    sudo = () if cli.is_root(cfg) else ('sudo',)\npulp_2_tests/tests/rpm/cli/test_process_recycling.py:        sudo = () if cli.is_root(cfg) else ('sudo',)\n\n```","distinct":true,"url":"https://api.github.com/repos/kersommoura/pulp-smash/commits/f8a21c390aacbc1edb904439d48595b83f6142c8"}]}
{"actor":{"display_login":"kersommoura"}}