]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
test: add hidden file test 1185/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Jun 2018 20:51:39 +0000 (13:51 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Jun 2018 20:52:17 +0000 (13:52 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/suite/test/test_build_matrix.py

index 742f33b54dad5fd38c113841227fa742231bd567..21dee893e51a5a0196eeb06e0d419ac37771c92a 100644 (file)
@@ -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': {