policy

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package policy contains remote Tast tests that exercise device policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceBootOnAC

func DeviceBootOnAC(ctx context.Context, s *testing.State)

DeviceBootOnAC verifies DeviceBootOnAcEnabled policy that boots the device from the off state by plugging in a power supply. If the policy is disabled or not set, boot on AC is off.

func DeviceMinimumVersion

func DeviceMinimumVersion(ctx context.Context, s *testing.State)

func DeviceUSBPowershare

func DeviceUSBPowershare(ctx context.Context, s *testing.State)

DeviceUSBPowershare verifies DeviceUsbPowerShareEnabled policy that enables sharing power through USB when DUT is in a power-off state. If the policy is disabled, no power through USB and if it is unset, it acts as enabled.

func DeviceWilcoDtcAllowed

func DeviceWilcoDtcAllowed(ctx context.Context, s *testing.State)

DeviceWilcoDtcAllowed tests DeviceWilcoDtcAllowed policy. TODO(b/189457904): remove once policy.DeviceWilcoDtcAllowedEnrolled will be stable enough.

func Enrollment

func Enrollment(ctx context.Context, s *testing.State)

func EnterpriseRollbackInPlace

func EnterpriseRollbackInPlace(ctx context.Context, s *testing.State)

func GAIAEnrollment

func GAIAEnrollment(ctx context.Context, s *testing.State)

func GAIAKioskEnrollment

func GAIAKioskEnrollment(ctx context.Context, s *testing.State)

func GAIAReporting

func GAIAReporting(ctx context.Context, s *testing.State)

func RollbackWithNebraska

func RollbackWithNebraska(ctx context.Context, s *testing.State)

func RollbackWithOmaha

func RollbackWithOmaha(ctx context.Context, s *testing.State)

RollbackWithOmaha test must be provided the source and target image versions. The source version should be a full version string. The target can be just a prefix. Furthermore, test should be started with

-var=policy.RollbackWithOmaha.confirm=ICanRollbackMyDUT

to avoid accidental execution of the test.

For example, to run a rollback from M96 to M94: tast run

-var=policy.RollbackWithOmaha.confirm=ICanRollbackMyDUT
-var=policy.RollbackWithOmaha.sourceVersion=14244.0.0
-var=policy.RollbackWithOmaha.targetVersion=14092.
<ip> policy.RollbackWithOmaha

Types

This section is empty.

Directories

Path Synopsis
Package dututils provides useful DUT related utilities within a small scope.
Package dututils provides useful DUT related utilities within a small scope.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL