From: Patrick Donnelly Date: Mon, 25 Jun 2018 20:51:39 +0000 (-0700) Subject: test: add hidden file test X-Git-Tag: 1.1.0~335^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a67c221d10efd5976ab7f0d8cd82b5a0ca863939;p=teuthology.git test: add hidden file test Signed-off-by: Patrick Donnelly --- diff --git a/teuthology/suite/test/test_build_matrix.py b/teuthology/suite/test/test_build_matrix.py index 742f33b54d..21dee893e5 100644 --- a/teuthology/suite/test/test_build_matrix.py +++ b/teuthology/suite/test/test_build_matrix.py @@ -413,6 +413,76 @@ class TestBuildMatrix(object): assert len(result) == 11 assert len(result2) == len(result) + def test_hidden(self): + fake_fs = { + 'teuthology': { + 'no-ceph': { + '%': None, + '.qa': None, + 'clusters': { + 'single.yaml': None, + '.qa': None, + }, + 'distros': { + '.qa': None, + 'baremetal.yaml': None, + 'rhel7.0.yaml': None, + 'ubuntu12.04.yaml': None, + 'ubuntu14.04.yaml': None, + 'vps.yaml': None, + 'vps_centos6.5.yaml': None, + 'vps_debian7.yaml': None, + 'vps_rhel6.4.yaml': None, + 'vps_rhel6.5.yaml': None, + 'vps_rhel7.0.yaml': None, + 'vps_ubuntu14.04.yaml': None, + }, + 'tasks': { + '.qa': None, + 'teuthology.yaml': None, + }, + '.foo': { + '.qa': None, + 'teuthology.yaml': None, + }, + }, + }, + } + self.start_patchers(fake_fs) + result = build_matrix.build_matrix('teuthology/no-ceph') + self.stop_patchers() + + fake_fs2 = { + 'teuthology': { + 'no-ceph': { + '%': None, + 'clusters': { + 'single.yaml': None, + }, + 'distros': { + 'baremetal.yaml': None, + 'rhel7.0.yaml': None, + 'ubuntu12.04.yaml': None, + 'ubuntu14.04.yaml': None, + 'vps.yaml': None, + 'vps_centos6.5.yaml': None, + 'vps_debian7.yaml': None, + 'vps_rhel6.4.yaml': None, + 'vps_rhel6.5.yaml': None, + 'vps_rhel7.0.yaml': None, + 'vps_ubuntu14.04.yaml': None, + }, + 'tasks': { + 'teuthology.yaml': None, + }, + }, + }, + } + self.start_patchers(fake_fs2) + result2 = build_matrix.build_matrix('teuthology/no-ceph') + assert len(result) == 11 + assert len(result2) == len(result) + def test_disable_extension(self): fake_fs = { 'teuthology': {