tests: Add example test using power_control plugin
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
4acc7fb328
commit
9dc7f9aea7
26
test/functional/tests/example/example_test_power_cycle.py
Normal file
26
test/functional/tests/example/example_test_power_cycle.py
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Copyright(c) 2020 Intel Corporation
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
#
|
||||
|
||||
import pytest
|
||||
from core.test_run import TestRun
|
||||
from storage_devices.disk import DiskType, DiskTypeSet
|
||||
|
||||
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_plugin("power_control")
|
||||
def test_create_example_partitions():
|
||||
"""
|
||||
title: Example test doing power cycle
|
||||
description: |
|
||||
Example usage of power_control plugin.
|
||||
NOTE:
|
||||
This test uses plugin that is not included in test-framework.
|
||||
It should be provided by user as external_plugin.
|
||||
pass_criteria:
|
||||
- DUT should reboot successfully.
|
||||
"""
|
||||
with TestRun.step("Power cycle DUT"):
|
||||
power_control = TestRun.plugin_manager.get_plugin('power_control')
|
||||
power_control.power_cycle()
|
Loading…
Reference in New Issue
Block a user