blob: cbdc8d0b2d6b1774a8b0f66e0256c36fc2ee2fc0 [file] [log] [blame]
# Copyright 2014 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.
import logging, os
from autotest_lib.client.bin import test, utils
from autotest_lib.client.common_lib.cros import chrome, enrollment
from autotest_lib.client.cros.multimedia import cfm_facade_native
class enterprise_RemoraRequisition(test.test):
"""Enroll as a Remora device."""
version = 1
def run_once(self):
Runs the test.
user_id, password = utils.get_signin_credentials(os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'credentials.txt'))
if not (user_id and password):
logging.warn('No credentials found - exiting test.')
with chrome.Chrome(
extra_browser_args="--force-devtools-available") as cr:
enrollment.RemoraEnrollment(cr.browser, user_id, password)
self.cfm_facade = cfm_facade_native.CFMFacadeNative(cr, 'hotrod')