testacc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package testacc contains helper methods for running acceptance tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicIfMissingEnv

func PanicIfMissingEnv()

PanicIfMissingEnv is designed to panic if the following environment variables are not set:

  • PHPIPAM_APP_ID
  • PHPIPAM_ENDPOINT_ADDR
  • PHPIPAM_PASSWORD
  • PHPIPAM_USER_NAME

Acceptance tests cannot continue if these are not set so there is no point in continuing.

func SkipIfCustomNested

func SkipIfCustomNested(t *testing.T)

SkipIfCustomNested is designed to skip an integration test if TESTACC_CUSTOM_NESTED is set.

func SkipIfNotAcc

func SkipIfNotAcc(t *testing.T)

SkipIfNotAcc is designed to skip an integration test if TESTACC is not set.

func VetAccConditions

func VetAccConditions(t *testing.T)

VetAccConditions is a meta-function that ensures that an acceptance test meets the conditions necessary to continue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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