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-remora, suite:bluestreak-pre-cq"
12TIME = "SHORT"
13TEST_CATEGORY = "Functional"
14TEST_TYPE = "server"
15
16DOC = """
17Verifies that we can specify and run a configurable cfm test.
18"""
19
20cfm_test = CfmTest(
21    scenario=Scenario(
22        RebootDut(restart_chrome_for_cfm=True),
23        CreateMeeting(),
24        RepeatTimes(5, Scenario(
25            MuteMicrophone(),
26            UnmuteMicrophone()
27        )),
28        LeaveMeeting()
29    ),
30    configuration=Configuration(
31        run_test_only = False
32    )
33)
34
35def run_test(machine):
36    job.run_test("enterprise_CFM_ConfigurableCfmTestSanity",
37                 cfm_test = cfm_test,
38                 tag = 'join_leave',
39                 host = hosts.create_host(machine))
40
41parallel_simple(run_test, machines)
42