update

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: 10 Imported by: 0

Documentation

Overview

Package update contains helper functions for Lacros update tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLacrosUpdate

func ClearLacrosUpdate(ctx context.Context, utsClient lacrosservice.UpdateTestServiceClient) error

ClearLacrosUpdate calls a RPC to the test service to remove provisioned Lacros and reset to the previous state.

func GetAshVersion

func GetAshVersion(ctx context.Context, dut *dut.DUT, utsClient lacrosservice.UpdateTestServiceClient) (version.Version, error)

GetAshVersion returns the version of Ash Chrome.

func GetRootfsLacrosVersion

func GetRootfsLacrosVersion(ctx context.Context, dut *dut.DUT, utsClient lacrosservice.UpdateTestServiceClient) (version.Version, error)

GetRootfsLacrosVersion returns the version of Lacros Chrome in the Rootfs partition.

func LacrosComponentVar

func LacrosComponentVar(s *testing.State) (string, error)

LacrosComponentVar returns the valid Lacros component to override from the runtime var. Defaults to Lacros dev channel if the var is not present.

func ProvisionLacrosFromRootfsLacrosImagePath

func ProvisionLacrosFromRootfsLacrosImagePath(ctx context.Context, tlsAddr string, dut *dut.DUT, overrideVersion, overrideComponent string) error

ProvisionLacrosFromRootfsLacrosImagePath calls a RPC to the TLS to provision Stateful Lacros from the source of Rootfs Lacros image installation path. This is useful when making the test hermetic by removing external source of Lacros binary.

func SaveLogsFromDut

func SaveLogsFromDut(ctx context.Context, dut *dut.DUT, logOutDir string)

SaveLogsFromDut saves device logs that are useful for troubleshooting test failures.

func VerifyLacrosUpdate

func VerifyLacrosUpdate(ctx context.Context, expectedBrowser lacrosservice.BrowserType, expectedVersion, expectedComponent string, utsClient lacros.UpdateTestServiceClient) error

VerifyLacrosUpdate calls a RPC to the test service to verify the provisioned Lacros update is installed and selected in runtime on a DUT as expected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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