def test_combinations_filter_out(self):
     headers, rows = get_combinations('basic', [], None, 0, None,
                                      ['old_format'], True,
                                      self.fake_isdir, self.fake_open,
                                      self.fake_isfile, self.fake_listdir)
     self.assert_expected_combo_headers(headers)
     assert rows == [['basic', 'install', 'fixed-1', 'rbd_api_tests']]
Example #2
0
 def test_combinations_only_facets(self):
     headers, rows = get_combinations('basic',
             fields=[], subset=None, limit=1,
             filter_in=None, filter_out=None, filter_all=None,
             include_facet=True)
     self.assert_expected_combo_headers(headers)
     assert rows == [['basic', 'install', 'fixed-1', 'rbd_api_tests']]
 def test_combinations_filter_in(self):
     headers, rows = get_combinations('basic', [], None, 0, ['old_format'],
                                      None, True)
     self.assert_expected_combo_headers(headers)
     assert rows == [[
         'basic', 'install', 'fixed-1', 'rbd_api_tests_old_format'
     ]]
 def test_combinations_filter_out(self):
     headers, rows = get_combinations('basic', [], None, 0, None,
                                      ['old_format'], True, self.fake_isdir,
                                      self.fake_open, self.fake_isfile,
                                      self.fake_listdir)
     self.assert_expected_combo_headers(headers)
     assert rows == [['basic', 'install', 'fixed-1', 'rbd_api_tests']]
 def test_combinations_only_facets(self):
     headers, rows = get_combinations('basic', [], None, 1, None,
                                      None, True,
                                      self.fake_isdir, self.fake_open,
                                      self.fake_isfile,
                                      self.fake_listdir)
     self.assert_expected_combo_headers(headers)
     assert rows == [['basic', 'install', 'fixed-1', 'rbd_api_tests']]
 def test_combinations_desc_features(self):
     headers, rows = get_combinations('basic', ['desc', 'rbd_features'],
                                      None, 1, None, None, False)
     assert headers == ['desc', 'rbd_features']
     descriptions = '\n'.join([
         'install ceph',
         'single node cluster',
         'c/c++ librbd api tests with default settings',
     ])
     assert rows == [[descriptions, 'default']]
Example #7
0
 def test_combinations_filter_all(self):
     headers, rows = get_combinations('basic',
             fields=[], subset=None, limit=0,
             filter_in=None, filter_out=None,
             filter_all=['fixed-2', 'old_format'],
             include_facet=True)
     self.assert_expected_combo_headers(headers)
     assert rows == [
         ['basic', 'install', 'fixed-2', 'rbd_api_tests_old_format']
     ]
Example #8
0
 def test_combinations_desc_features(self):
     headers, rows = get_combinations('basic',
             fields=['desc', 'rbd_features'], subset=None, limit=1,
             filter_in=None, filter_out=None, filter_all=None,
             include_facet=False)
     assert headers == ['desc', 'rbd_features']
     descriptions = '\n'.join([
         'install ceph',
         'single node cluster',
         'c/c++ librbd api tests with default settings',
     ])
     assert rows == [[descriptions, 'default']]
 def test_combinations_desc_features(self):
     headers, rows = get_combinations('basic', ['desc', 'rbd_features'],
                                      None, 1, None, None, False,
                                      self.fake_isdir, self.fake_open,
                                      self.fake_isfile,
                                      self.fake_listdir)
     assert headers == ['desc', 'rbd_features']
     descriptions = '\n'.join([
         'install ceph',
         'single node cluster',
         'c/c++ librbd api tests with default settings',
     ])
     assert rows == [[descriptions, 'default']]
 def test_combinations_only_facets(self):
     headers, rows = get_combinations('basic', [], None, 1, None, None,
                                      True)
     self.assert_expected_combo_headers(headers)
     assert rows == [['basic', 'install', 'fixed-1', 'rbd_api_tests']]