1# Copyright 2018 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 5AUTHOR = 'apronin' 6NAME = 'platform_BootLockboxServer' 7PURPOSE = 'Tests the boot lockbox mechanism.' 8CRITERIA = 'Fails if the lockbox mechanism does not function as expected.' 9TIME = 'SHORT' 10TEST_CATEGORY = 'Functional' 11TEST_CLASS = 'platform' 12TEST_TYPE = 'server' 13ATTRIBUTES = "suite:bvt-perbuild" 14 15DOC = """ 16This test verifies that boot lockbox mechanism is functional. It tests that 17lockbox data can be signed and verified before finalization, but after 18finalization it can only be verified. 19The client-side platform_BootLockbox test requires that it is run when the 20boot lockbox is not locked yet, i.e. before any user has logged in. So, this 21server-side test reboots the DUT and calls platform_BootLockbox right after 22that. 23""" 24 25def run(machine): 26 client = hosts.create_host(machine) 27 client_at = autotest.Autotest(client) 28 29 client.reboot() 30 client_at.run_test('platform_BootLockbox') 31 32parallel_simple(run, machines) 33