Пример #1
0
 def test02_rackhd_installer(self):
     self.assertEqual(
         fit_common.run_nose(fit_common.TEST_PATH +
                             '/deploy/rackhd_source_install.py'), 0,
         'RackHD source installer failed.')
Пример #2
0
ARG_PARSER.add_argument("-xunit", default="False", action="store_true",
                        help="generates xUnit XML report files")
ARG_PARSER.add_argument("-list", default="False", action="store_true",
                        help="generates test list only")
ARG_PARSER.add_argument("-sku", default="all",
                        help="node SKU, example:Phoenix, default=all")
GROUP = ARG_PARSER.add_mutually_exclusive_group(required=False)
GROUP.add_argument("-obmmac", default="all",
                        help="node OBM MAC address, example:00:1e:67:b1:d5:64, default=all")
GROUP.add_argument("-nodeid", default="None",
                     help="node identifier string of a discovered node, example: 56ddcf9a8eff16614e79ec74")
ARG_PARSER.add_argument("-v", default=1, type=int,
                        help="Verbosity level of console output, default=0, Built Ins: " +
                             "0: No debug, " +
                             "2: User script output, " +
                             "4: rest calls and status info, " +
                             "6: other common calls (ipmi, ssh), " +
                             "9: all the rest ")

# parse arguments to CMD_ARGS dict
CMD_ARGS = vars(ARG_PARSER.parse_args())
# transfer argparse args to ARGS_LIST
for keys in CMD_ARGS:
    fit_common.ARGS_LIST[keys] = CMD_ARGS[keys]

# Run tests
EXITCODE = fit_common.run_nose(CMD_ARGS['test'])

exit(EXITCODE)

Пример #3
0
 def test01_install_os_ova(self):
     self.assertEqual(
         fit_common.run_nose(fit_common.TEST_PATH +
                             '/deploy/os_ova_install.py'), 0,
         'OS installer failed.')
 def test03_initialize_stack(self):
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/deploy/rackhd_stack_init.py'), 0, 'RackHD stack init failed.')
 def test04_rackhd_smoke_test(self):
     # set test group to 'smoke'
     fit_common.ARGS_LIST['group'] = "smoke"
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/tests'), 0, 'RackHD Smoke Test failed.')
Пример #6
0
 def test01(self):
     self.assertEqual(fit_common.run_nose('fit_test_template.py'), 0)
 def test02_rackhd_installer(self):
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/deploy/rackhd_source_install.py'), 0, 'RackHD source installer failed.')
Пример #8
0
GROUP.add_argument("-obmmac", default="all",
                        help="node OBM MAC address, example:00:1e:67:b1:d5:64")
GROUP.add_argument("-nodeid", default="None",
                     help="node identifier string of a discovered node, example: 56ddcf9a8eff16614e79ec74")
GROUP2 = ARG_PARSER.add_mutually_exclusive_group(required=False)
GROUP2.add_argument("-http", default="False", action="store_true",
                        help="forces the tests to utilize the http API protocol")
GROUP2.add_argument("-https", default="False", action="store_true",
                        help="forces the tests to utilize the https API protocol")
ARG_PARSER.add_argument("-port", default="None",
                        help="API port number override, default from global_config.json")
ARG_PARSER.add_argument("-v", default=1, type=int,
                        help="Verbosity level of console output, default=0, Built Ins: " +
                             "0: No debug, " +
                             "2: User script output, " +
                             "4: rest calls and status info, " +
                             "6: other common calls (ipmi, ssh), " +
                             "9: all the rest ")

# parse arguments to CMD_ARGS dict
CMD_ARGS = vars(ARG_PARSER.parse_args())
# transfer argparse args to ARGS_LIST
for keys in CMD_ARGS:
    fit_common.ARGS_LIST[keys] = CMD_ARGS[keys]

# Run tests
EXITCODE = fit_common.run_nose(CMD_ARGS['test'])

exit(EXITCODE)

Пример #9
0
 def test02_rackhd_installer(self):
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/deploy/onrack_package_install.py'), 0, 'OnRack installer failed.')
Пример #10
0
 def test02_rackhd_installer(self):
     self.assertEqual(
         fit_common.run_nose(fit_common.TEST_PATH +
                             '/deploy/onrack_package_install.py'), 0,
         'OnRack installer failed.')
Пример #11
0
 def test01(self):
     self.assertEqual(fit_common.run_nose('fit_test_template.py'), 0)
Пример #12
0
 def test03_initialize_sku(self):
     self.assertEqual(
         fit_common.run_nose(
             fit_common.TEST_PATH +
             '/deploy/rackhd_stack_init.py:rackhd_stack_init.test01_preload_sku_packs'
         ), 0, 'RackHD SKU install failed.')
Пример #13
0
 def test02_initialize_stack(self):
     self.assertEqual(
         fit_common.run_nose(fit_common.TEST_PATH +
                             '/deploy/onrack_stack_init.py'), 0,
         'OnRack stack init failed.')
 def test02_initialize_stack(self):
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/deploy/onrack_stack_init.py'), 0, 'OnRack stack init failed.')
Пример #15
0
 def test03_initialize_stack(self):
     self.assertEqual(
         fit_common.run_nose(fit_common.TEST_PATH +
                             '/deploy/rackhd_stack_init.py'), 0,
         'RackHD stack init failed.')
 def test01_install_os_ova(self):
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/deploy/os_ova_install.py'), 0, 'OS installer failed.')
Пример #17
0
 def test04_rackhd_smoke_test(self):
     # set test group to 'smoke'
     fit_common.ARGS_LIST['group'] = "smoke"
     self.assertEqual(fit_common.run_nose(fit_common.TEST_PATH + '/tests'),
                      0, 'RackHD Smoke Test failed.')
Пример #18
0
#!/usr/bin/env python
'''
Copyright 2016, EMC, Inc

Author(s):
George Paulos
'''

# set path to common libraries
import fit_path  # NOQA: unused import
import sys
import subprocess

import fit_common

# validate command line args
fit_common.mkargs()

# Run tests
EXITCODE = fit_common.run_nose()
exit(EXITCODE)