]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Update existing unit test, and add another.
authorZack Cerza <zack@cerza.org>
Wed, 9 Jul 2014 17:46:33 +0000 (11:46 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 10 Jul 2014 22:35:36 +0000 (16:35 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/test/test_suite.py

index b92ec1566865bb2ecee26bd1fa20db87cda2fa16..9dc44a30a283bb1f4d528eb3f4b8b4b7c62166ab 100644 (file)
@@ -1,6 +1,5 @@
 import os
 import requests
-import yaml
 from datetime import datetime
 from pytest import raises, skip
 
@@ -76,12 +75,18 @@ class TestSuiteOnline(object):
     def test_config_substitution(self):
         # Don't attempt to send email
         config.results_email = None
-        job_config_str = suite.create_initial_config('MY_SUITE', 'master',
-                                                     'master', 'testing',
-                                                     'basic', 'centos',
-                                                     'plana')
-        job_config = yaml.safe_load(job_config_str)
+        job_config = suite.create_initial_config('MY_SUITE', 'master',
+                                                 'master', 'testing', 'basic',
+                                                 'centos', 'plana')
         assert job_config['suite'] == 'MY_SUITE'
 
+    def test_config_kernel_section(self):
+        # Don't attempt to send email
+        config.results_email = None
+        job_config = suite.create_initial_config('MY_SUITE', 'master',
+                                                 'master', 'testing', 'basic',
+                                                 'centos', 'plana')
+        assert job_config['kernel']['kdb'] is True
+
 
 # maybe use notario for the above?