Ejemplo n.º 1
0
 def test_name_user(self):
     name = suite.make_run_name('suite',
                                'ceph',
                                'kernel',
                                'flavor',
                                'mtype',
                                user='******')
     assert name.startswith('USER-')
Ejemplo n.º 2
0
 def test_name_timestamp_passed(self):
     stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
     name = suite.make_run_name('suite',
                                'ceph',
                                'kernel',
                                'flavor',
                                'mtype',
                                timestamp=stamp)
     assert str(stamp) in name
Ejemplo n.º 3
0
 def test_name_user(self):
     name = suite.make_run_name('suite', 'ceph', 'kernel', 'flavor',
                                'mtype', user='******')
     assert name.startswith('USER-')
Ejemplo n.º 4
0
 def test_name_timestamp_not_passed(self):
     stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
     name = suite.make_run_name('suite', 'ceph', 'kernel', 'flavor',
                                'mtype')
     assert str(stamp) in name
Ejemplo n.º 5
0
 def test_name_user(self):
     name = suite.make_run_name("suite", "ceph", "kernel", "flavor", "mtype", user="******")
     assert name.startswith("USER-")
Ejemplo n.º 6
0
 def test_name_timestamp_not_passed(self):
     stamp = datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
     name = suite.make_run_name("suite", "ceph", "kernel", "flavor", "mtype")
     assert str(stamp) in name