Home | History | Annotate | Download | only in enterprise_KioskEnrollmentServer
      1 # Copyright 2016 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 
      5 from autotest_lib.client.common_lib.cros import tpm_utils
      6 from autotest_lib.server import test, autotest
      7 
      8 
      9 class enterprise_KioskEnrollmentServer(test.test):
     10     """A test that runs enterprise_KioskEnrollment and clears the TPM as
     11     necessary."""
     12     version = 1
     13 
     14     def run_once(self, host=None, kiosk_app_attributes=None):
     15         self.client = host
     16 
     17         tpm_utils.ClearTPMOwnerRequest(self.client)
     18         autotest.Autotest(self.client).run_test('enterprise_KioskEnrollment',
     19                 kiosk_app_attributes=kiosk_app_attributes,
     20                 check_client_result=True)
     21         tpm_utils.ClearTPMOwnerRequest(self.client)
     22