fixtures

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

Documentation

Overview

Package fixtures contains fixtures useful for policy tests.

Index

Constants

View Source
const (
	Username = "tast-user@managedchrome.com"
	Password = "test0000"
)

Credentials used for authenticating the test user.

View Source
const PolicyFileDump = "policies.json"

PolicyFileDump is the filename where the state of policies is dumped after the test ends.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixtData

type FixtData struct {
	// contains filtered or unexported fields
}

FixtData is returned by the fixtures and used in tests by using interfaces HasChrome to get chrome and HashFakeDMS to get fakeDMS.

func NewFixtData

func NewFixtData(cr *chrome.Chrome, fdms *fakedms.FakeDMS) *FixtData

NewFixtData returns a FixtData pointer with the given chrome and fdms instances. Needed as wilco fixtures use it to create a return value.

func (FixtData) Chrome

func (f FixtData) Chrome() *chrome.Chrome

Chrome implements the HasChrome interface.

func (FixtData) FakeDMS

func (f FixtData) FakeDMS() *fakedms.FakeDMS

FakeDMS implements the HasFakeDMS interface.

Jump to

Keyboard shortcuts

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