1. Create a recording
2. During recording in-progress restart the channel 3 times using V2PC API
3. Wait till the recording ends
4. Verify the recorded content. It should be in either Complete state / Incomplete state.
5. Verify the playback
"""

pytestmark = pytest.mark.recording
LOGGER = logging.getLogger(
    os.environ.get("PYTEST_XDIST_WORKER", TestLog.TEST_LOGGER))
CONFIG_INFO = utils.get_configInfo()

COMPONENT_NAME = Component.MCE
COMPONENT_USERNAME = Component.MCE_USERNAME

streams_info = utils.get_source_streams(constants.Stream_tags.GENERIC)
channels = streams_info[Component.STREAMS]


@utils.test_case_logger
@pytest.mark.parametrize("channel", channels)
def test_tc10367_restart_channel_when_recording(channel):
    """
    JIRA ID : IPDVRTESTS-58 
    JIRA Link : https://jira01.engit.synamedia.com/browse/IPDVRTESTS-58
    TC10367: Restart the channel during recording and then playback
    """
    stream = channel
    recording = None
    web_service_obj = None
    try:
コード例 #2
0
import helpers.utils as utils
import helpers.vmr.a8.a8_helper as a8
from helpers.v2pc import v2pc_helper
import validators.validate_common as validate_common
import validators.validate_recordings as validate_recordings
from helpers.constants import Component
from helpers.constants import TestLog
from helpers.constants import TimeFormat
from helpers.constants import PlaybackTypes
from helpers.constants import V2pc
from helpers.constants import Stream_tags

pytestmark = pytest.mark.recording
LOGGER = logging.getLogger(os.environ.get("PYTEST_XDIST_WORKER", TestLog.TEST_LOGGER))
V2PC_EXIST = utils.is_v2pc()
streams_info = utils.get_source_streams(Stream_tags.SEC_6, Stream_tags.MULTIAUDIO)
channels = streams_info[Component.STREAMS]

@utils.test_case_logger
@pytest.mark.parametrize("channel", channels)
def test_filter_video_based_on_rank_ipdvrtests_235(channel):
    """
    JIRA ID : IPDVRTESTS-235
    JIRA Link : https://jira01.engit.synamedia.com/browse/IPDVRTESTS-235
    Description: DASH-Confirm MPE publish template to filter video based on rank
    """
    stream = channel
    recording = None
    metadata = None
    web_service_obj = None
    try:
import validators.validate_storage as validate_storage

from helpers.constants import Cos
from helpers.constants import Component
from helpers.constants import TestLog
from helpers.constants import TimeFormat
from helpers.constants import Archive
from helpers.constants import ValidationError
from helpers.constants import RecordingAttribute
from helpers.constants import VMR_SERVICES_RESTART

LOGGER = logging.getLogger(os.environ.get("PYTEST_XDIST_WORKER", TestLog.TEST_LOGGER))
CONFIG_INFO = utils.get_configInfo()

V2PC_EXIST = (CONFIG_INFO[Component.GENERIC_CONFIG][Component.ENABLE] == "v2pc")
streams_info = utils.get_source_streams(constants.Stream_tags.MULTIPLE_AUDIO_CODEC)
channels = streams_info[Component.STREAMS]

gen_config = utils.get_spec_config()
mpe_config = utils.get_spec_config(Component.MPE)

@utils.test_case_logger
@pytest.mark.parametrize("channel", channels)
@pytest.mark.skipif(V2PC_EXIST is False, reason="V2PC Doesn't Exist")
def test_HLS_Verify_codec_based_audio_filtering_V2PC_ipdvrtests_46(channel):
    """
    JIRA ID : IPDVRTESTS-46
    TITLE   : "HLS : Verify codec based audio filtering"
    STEPS   : Create a 30mins recording with future start time. 
              Playback using the HLS publish template configured to filter based on audio codecs.
              Verify output of manifest curl to match the filtering configured in publish template