mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip Pygit2 tests until EPEL fixes pygit2/libgit2 version mismatch
We can revert this commit once they get the updated pygit2 pushed to EPEL stable.
This commit is contained in:
parent
9f27f362ca
commit
402be207b2
2 changed files with 24 additions and 0 deletions
|
@ -412,6 +412,12 @@ class TestPygit2SSH(GitPillarSSHTestBase):
|
|||
username = USERNAME
|
||||
passphrase = PASSWORD
|
||||
|
||||
def setUp(self):
|
||||
super(TestPygit2SSH, self).setUp()
|
||||
if self.is_el7(): # pylint: disable=E1120
|
||||
self.skipTest(
|
||||
'skipped until EPEL7 fixes pygit2/libgit2 version mismatch')
|
||||
|
||||
@requires_system_grains
|
||||
def test_single_source(self, grains):
|
||||
'''
|
||||
|
@ -1115,6 +1121,12 @@ class TestPygit2HTTP(GitPillarHTTPTestBase):
|
|||
'''
|
||||
Test git_pillar with pygit2 using SSH authentication
|
||||
'''
|
||||
def setUp(self):
|
||||
super(TestPygit2HTTP, self).setUp()
|
||||
if self.is_el7(): # pylint: disable=E1120
|
||||
self.skipTest(
|
||||
'skipped until EPEL7 fixes pygit2/libgit2 version mismatch')
|
||||
|
||||
def test_single_source(self):
|
||||
'''
|
||||
Test using a single ext_pillar repo
|
||||
|
@ -1352,6 +1364,12 @@ class TestPygit2AuthenticatedHTTP(GitPillarHTTPTestBase):
|
|||
user = USERNAME
|
||||
password = PASSWORD
|
||||
|
||||
def setUp(self):
|
||||
super(TestPygit2AuthenticatedHTTP, self).setUp()
|
||||
if self.is_el7(): # pylint: disable=E1120
|
||||
self.skipTest(
|
||||
'skipped until EPEL7 fixes pygit2/libgit2 version mismatch')
|
||||
|
||||
def test_single_source(self):
|
||||
'''
|
||||
Test using a single ext_pillar repo
|
||||
|
|
|
@ -241,6 +241,12 @@ class GitTestBase(ModuleCase):
|
|||
git_opts = '-c user.name="Foo Bar" -c user.email=foo@bar.com'
|
||||
ext_opts = {}
|
||||
|
||||
# We need to temporarily skip pygit2 tests on EL7 until the EPEL packager
|
||||
# updates pygit2 to bring it up-to-date with libgit2.
|
||||
@requires_system_grains
|
||||
def is_el7(self, grains):
|
||||
return grains['os_family'] == 'RedHat' and grains['osmajorrelease'] == 7
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.prep_server()
|
||||
|
|
Loading…
Add table
Reference in a new issue