Documentation ¶
Overview ¶
Package policy contains remote Tast tests that exercise device policies.
Index ¶
- func DeviceBootOnAC(ctx context.Context, s *testing.State)
- func DeviceMinimumVersion(ctx context.Context, s *testing.State)
- func DeviceUSBPowershare(ctx context.Context, s *testing.State)
- func DeviceWilcoDtcAllowed(ctx context.Context, s *testing.State)
- func Enrollment(ctx context.Context, s *testing.State)
- func EnterpriseRollbackInPlace(ctx context.Context, s *testing.State)
- func GAIAEnrollment(ctx context.Context, s *testing.State)
- func GAIAKioskEnrollment(ctx context.Context, s *testing.State)
- func GAIAReporting(ctx context.Context, s *testing.State)
- func RollbackWithNebraska(ctx context.Context, s *testing.State)
- func RollbackWithOmaha(ctx context.Context, s *testing.State)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceBootOnAC ¶
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 DeviceUSBPowershare ¶
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 ¶
DeviceWilcoDtcAllowed tests DeviceWilcoDtcAllowed policy. TODO(b/189457904): remove once policy.DeviceWilcoDtcAllowedEnrolled will be stable enough.
func RollbackWithOmaha ¶
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.