from redfish_endpoints.test_led import RedfishLEDTestCase
from redfish_endpoints.test_power import RedfishPowerTestCase
from redfish_endpoints.test_read import RedfishReadTestCase
from redfish_endpoints.test_scan import RedfishScanTestCase
from redfish_endpoints.test_scan_all import RedfishScanAllTestCase
from redfish_endpoints.test_version import RedfishVersionTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for Redfish endpoint tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(EndpointRunningTestCase))
    suite.addTest(unittest.makeSuite(RedfishAssetTestCase))
    suite.addTest(unittest.makeSuite(RedfishBootTargetTestCase))
    suite.addTest(unittest.makeSuite(RedfishFanTestCase))
    suite.addTest(unittest.makeSuite(RedfishHostInfoTestCase))
    suite.addTest(unittest.makeSuite(RedfishLEDTestCase))
    suite.addTest(unittest.makeSuite(RedfishPowerTestCase))
    suite.addTest(unittest.makeSuite(RedfishReadTestCase))
    suite.addTest(unittest.makeSuite(RedfishScanAllTestCase))
    suite.addTest(unittest.makeSuite(RedfishScanTestCase))
    suite.addTest(unittest.makeSuite(RedfishVersionTestCase))
    return suite

if __name__ == '__main__':
    result = run_suite('test-redfish-endpoints', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Example #2
0
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from rs485_emulator.test_rs485_emulator import Rs485EmulatorTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for RS485 emulator tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(Rs485EmulatorTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-rs485-emulator',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
Example #3
0
(at your option) any later version.

Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from snmp_device_registration.test_snmp_device_registration import \
    SnmpDeviceRegistrationTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for SNMP emulator tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SnmpDeviceRegistrationTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-snmp-device-registration', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import time
import unittest

from snmp_device_kills.test_snmp_device_kills import SnmpDeviceKillsTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for SNMP emulator tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SnmpDeviceKillsTestCase))
    return suite


if __name__ == '__main__':
    time.sleep(30)  # Wait for emulators to die.
    result = run_suite('test-snmp-device-kills',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
Example #5
0
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from plc_bad_scan.test_bad_scan import BadScanTestCase
from plc_bad_scan.test_line_noise import LineNoiseTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for device bus tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(BadScanTestCase))
    suite.addTest(unittest.makeSuite(LineNoiseTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-plc-bad-scan', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Example #6
0
You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from utils.test_board_id_utils import BoardIdUtilsTestCase
from utils.test_cache_utils import CacheUtilsTestCase
from utils.test_device_id_utils import DeviceIdUtilsTestCase
from utils.test_device_interface_utils import DeviceInterfaceUtilsTestCase
from utils.test_validation_utils import ValidationUtilsTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite.
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(BoardIdUtilsTestCase))
    suite.addTest(unittest.makeSuite(CacheUtilsTestCase))
    suite.addTest(unittest.makeSuite(DeviceIdUtilsTestCase))
    suite.addTest(unittest.makeSuite(DeviceInterfaceUtilsTestCase))
    suite.addTest(unittest.makeSuite(ValidationUtilsTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-utils', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from endpoint_utilities.test_endpoint_utils import EndpointUtilitiesTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for endpoint utilities and helpers.
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(EndpointUtilitiesTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-endpoint-utilities',
                       get_suite(),
                       loglevel=logging.ERROR)
    exit_suite(result)
Example #8
0
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from location.test_chassis_location import ChassisLocationTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for.
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(ChassisLocationTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-location', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Example #9
0
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from i2c_devices.test_i2c_sdp610_pressure import SDP610TestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for I2C device tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SDP610TestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-i2c-devices', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Example #10
0
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from redfish_endurance.test_redfish_endurance import RedfishEnduranceTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for Redfish endpoint tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(RedfishEnduranceTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-redfish-endurance',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from ipmi_emulator_throughput.test_ipmi_emulator_throughput import \
    IPMIEmulatorThroughputTestCase
from ipmi_emulator_throughput.test_ipmi_emulator_throughput_failures import \
    IPMIEmulatorFailureThroughputTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for IPMI emulator
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(IPMIEmulatorThroughputTestCase))
    suite.addTest(unittest.makeSuite(IPMIEmulatorFailureThroughputTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-ipmi-emulator-throughput',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from ipmi_no_init_scan.test_ipmi_no_init_scan import IPMINoInitScanTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for no scan during device init
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(IPMINoInitScanTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-ipmi-no-init-scan',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
Example #13
0
(at your option) any later version.

Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from device_supported_commands.test_device_supported_commands import \
    SupportedDeviceCommandsTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for device command support tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(SupportedDeviceCommandsTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-device-supported-commands', get_suite(), loglevel=logging.INFO)
    exit_suite(result)
Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from ipmi_endpoints.test_ipmi_endpoints import IPMIEndpointsTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for ipmi endpoint tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(IPMIEndpointsTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-ipmi-endpoints',
                       get_suite(),
                       loglevel=logging.INFO)
    exit_suite(result)
Example #15
0
(at your option) any later version.

Synse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Synse.  If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import unittest

from ipmi_scan_cache_registration.test_ipmi_scan_cache_registration import \
    IPMIScanCacheRegistrationTestCase

from synse.vapor_common.test_utils import exit_suite, run_suite


def get_suite():
    """ Create an instance of the test suite for ipmi scan cache registration tests
    """
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(IPMIScanCacheRegistrationTestCase))
    return suite


if __name__ == '__main__':
    result = run_suite('test-ipmi-scan-cache-registration', get_suite(), loglevel=logging.INFO)
    exit_suite(result)