| # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from autotest_lib.client.common_lib.cros import tpm_utils |
| from autotest_lib.server import test, autotest |
| |
| |
| class enterprise_CFM_SanityServer(test.test): |
| """A test that clears the TPM and runs enterprise_RemoraRequisition to |
| enroll the device into Chromebox for Meetings. After successful enrollment, |
| it runs the CFM sanity test.""" |
| version = 1 |
| |
| def run_once(self, host=None): |
| self.client = host |
| |
| tpm_utils.ClearTPMOwnerRequest(self.client) |
| autotest.Autotest(self.client).run_test('enterprise_RemoraRequisition') |
| autotest.Autotest(self.client).run_test('enterprise_CFM_Sanity') |
| tpm_utils.ClearTPMOwnerRequest(self.client) |