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. 4from autotest_lib.server.cros.cfm.configurable_test.dsl import * 5from autotest_lib.server import utils 6 7AUTHOR = "kerl@google.com, chromeos-meetings@google.com" 8NAME = "enterprise_CFM_ConfigurableCfmTestSanity.join_leave" 9PURPOSE = "Verifies the configurable CfM test infra with a simple scenario" 10CRITERIA = "No errors occur" 11ATTRIBUTES = "suite:hotrod, suite:bluestreak-pre-cq" 12TIME = "SHORT" 13TEST_CATEGORY = "Functional" 14TEST_TYPE = "server" 15DEPENDENCIES="meet_app" 16 17DOC = """ 18Verifies that we can specify and run a configurable cfm test. 19""" 20 21cfm_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 36def run_test(machine): 37 job.run_test("enterprise_CFM_ConfigurableCfmTestSanity", 38 cfm_test = cfm_test, 39 tag = 'join_leave', 40 host = hosts.create_host(machine)) 41 42parallel_simple(run_test, machines) 43