rollbacknetworks

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

Documentation

Overview

Package rollbacknetworks contains test configuration and validation of the networks supported by rollback.

Index

Constants

This section is empty.

Variables

View Source
var SupportedNetworks = []SupportedConfiguration{
	{Config: pskConfig, Type: "PSK"},
	{Config: peapWifiConfig, Type: "wifi PEAP"},
}

SupportedNetworks is the list of configurations to test they are preserved after rollback. Test a simple PSK network configuration and PEAP without certificates. TODO(b/227562233): Test all the type of networks that are supported and preserved during rollback.

Functions

func VerifyNetwork

func VerifyNetwork(ctx context.Context, nwID ConfigID, nwSet *nc.ManagedProperties) (bool, error)

VerifyNetwork checks if the configuration set is the expected one. The verification of the fields depends on the configuration set, so the appropriate verification methods are called for each of them.

Types

type ConfigID

type ConfigID int

ConfigID is the index of the configuration in the list of supported networks.

const (
	Psk ConfigID = iota
	PeapWifi
)

The networks should be in the same order as assigned below.

type SupportedConfiguration

type SupportedConfiguration struct {
	Config nc.ConfigProperties
	Type   string
}

SupportedConfiguration contains the configuration of the network and its type. Type are for debug purposes and informational logs.

Jump to

Keyboard shortcuts

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