summaryrefslogtreecommitdiffstats
path: root/tests/opnfv/test_suites/opnfv_os-odl-fdio-noha_daily.yaml
blob: cc8df99b6f38e9688573266eb379197908325a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
# os-odl-fdio-noha daily task suite

schema: "yardstick:suite:0.1"

name: "os-odl-fdio-noha"
test_cases_dir: "tests/opnfv/test_cases/"
test_cases:
-
  file_name: opnfv_yardstick_tc002.yaml
-
  file_name: opnfv_yardstick_tc005.yaml
-
  file_name: opnfv_yardstick_tc010.yaml
-
  file_name: opnfv_yardstick_tc011.yaml
-
  file_name: opnfv_yardstick_tc012.yaml
-
  file_name: opnfv_yardstick_tc014.yaml
-
  file_name: opnfv_yardstick_tc037.yaml
-
  file_name: opnfv_yardstick_tc069.yaml
-
  file_name: opnfv_yardstick_tc070.yaml
-
  file_name: opnfv_yardstick_tc071.yaml
-
  file_name: opnfv_yardstick_tc072.yaml
ss="p">("../config_functest.yaml") as f: functest_yaml = yaml.safe_load(f) f.close() def test_getTestEnv(self): env_test = getTestEnv('ovno', functest_yaml) self.assertEqual(env_test, {'scenario': 'ocl'}) env_test = getTestEnv('doctor', functest_yaml) self.assertEqual(env_test, {'installer': 'fuel'}) env_test = getTestEnv('promise', functest_yaml) self.assertEqual(env_test, {'installer': '(fuel)|(joid)'}) env_test = getTestEnv('functest/tempest', functest_yaml) self.assertEqual(env_test, None) env_test = getTestEnv('functest/vims', functest_yaml) self.assertEqual(env_test, None) env_test = getTestEnv('functest/odl', functest_yaml) self.assertEqual(env_test, {'scenario': 'odl'}) env_test = getTestEnv('functest/onos', functest_yaml) self.assertEqual(env_test, {'scenario': 'onos'}) env_test = getTestEnv('policy-test', functest_yaml) self.assertEqual(env_test, {'scenario': 'odl'}) env_test = getTestEnv('sdnvpn/odl-vpn_service-tests', functest_yaml) self.assertEqual(env_test, {'installer': 'fuel', 'scenario': '(ovs)*(odl)'}) env_test = getTestEnv('sdnvpn/opnfv-yardstick-tc026-sdnvpn', functest_yaml) self.assertEqual(env_test, {'installer': 'fuel', 'scenario': '(ovs)*(nosdn)'}) env_test = getTestEnv('foo', functest_yaml) self.assertEqual(env_test, '') def test_isTestRunnable(self): test = isTestRunnable('ovno', functest_yaml) self.assertFalse(test) test = isTestRunnable('doctor', functest_yaml) self.assertTrue(test) test = isTestRunnable('promise', functest_yaml) self.assertTrue(test) test = isTestRunnable('functest/onos', functest_yaml) self.assertFalse(test) test = isTestRunnable('functest/odl', functest_yaml) self.assertTrue(test) test = isTestRunnable('functest/vping', functest_yaml) self.assertTrue(test) test = isTestRunnable('functest/tempest', functest_yaml) self.assertTrue(test) test = isTestRunnable('functest/rally', functest_yaml) self.assertTrue(test) test = isTestRunnable('functest/vims', functest_yaml) self.assertTrue(test) test = isTestRunnable('sdnvpn/odl-vpn_service-tests', functest_yaml) self.assertTrue(test) test = isTestRunnable('sdnvpn/opnfv-yardstick-tc026-sdnvpn', functest_yaml) self.assertFalse(test) def test_generateTestcaseList(self): test = generateTestcaseList(functest_yaml) expected_list = "vping tempest odl doctor promise policy-test odl-vpn_service-tests vims rally " self.assertEqual(test, expected_list) def tearDown(self): os.environ["INSTALLER_TYPE"] = "" os.environ["DEPLOY_SCENARIO"] = "" if __name__ == '__main__': unittest.main()