update docs for procedure after host reboot
[yardstick.git] / tests / functional / test_cli_runner.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 from __future__ import absolute_import
12 import unittest
13
14 from tests.functional import utils
15
16
17 class RunnerTestCase(unittest.TestCase):
18
19     def setUp(self):
20         super(RunnerTestCase, self).setUp()
21         self.yardstick = utils.Yardstick()
22
23     def test_runner_list(self):
24         res = self.yardstick("runner list")
25
26         self.assertIn("Duration", res)
27         self.assertIn("Arithmetic", res)
28         self.assertIn("Iteration", res)
29         self.assertIn("Sequence", res)
30
31     def test_runner_show_Duration(self):
32         res = self.yardstick("runner show Duration")
33         duration = "duration - amount of time" in res
34         self.assertTrue(duration)
35
36     def test_runner_show_Arithmetic(self):
37         res = self.yardstick("runner show Arithmetic")
38         arithmetic = "Run a scenario arithmetically" in res
39         self.assertTrue(arithmetic)
40
41     def test_runner_show_Iteration(self):
42         res = self.yardstick("runner show Iteration")
43         iteration = "iterations - amount of times" in res
44         self.assertTrue(iteration)
45
46     def test_runner_show_Sequence(self):
47         res = self.yardstick("runner show Sequence")
48         sequence = "sequence - list of values which are executed" in res
49         self.assertTrue(sequence)