1 # Copyright 2017 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 from autotest_lib.server.cros.cfm.configurable_test.dsl import * 5 from autotest_lib.server import utils 6 7 AUTHOR = "kerl (a] google.com, chromeos-meetings (a] google.com" 8 NAME = "enterprise_CFM_ConfigurableCfmTestSanity.join_leave" 9 PURPOSE = "Verifies the configurable CfM test infra with a simple scenario" 10 CRITERIA = "No errors occur" 11 ATTRIBUTES = "suite:bluestreak-perbuild, suite:bluestreak-pre-cq" 12 TIME = "SHORT" 13 TEST_CATEGORY = "Functional" 14 TEST_TYPE = "server" 15 DEPENDENCIES="meet_app" 16 17 DOC = """ 18 Verifies that we can specify and run a configurable cfm test. 19 """ 20 21 cfm_test = CfmTest( 22 scenario=Scenario( 23 RebootDut(restart_chrome_for_cfm=True), 24 CreateMeeting(), 25 RepeatTimes(5, Scenario( 26 MuteMicrophone(), 27 UnmuteMicrophone() 28 )), 29 LeaveMeeting() 30 ), 31 configuration=Configuration( 32 run_test_only = False 33 ) 34 ) 35 36 args_dict = utils.args_to_dict(args) 37 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 38 def run_test(machine): 39 job.run_test("enterprise_CFM_ConfigurableCfmTestSanity", 40 cfm_test = cfm_test, 41 tag = 'join_leave', 42 host = hosts.create_host(machine, servo_args=servo_args)) 43 44 parallel_simple(run_test, machines) 45