a1stub

package
v0.0.0-...-7cac148 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const ChefServerNginxStoppedSentinel = "/var/opt/opscode/a1stub_stopped_nginx"

Variables

This section is empty.

Functions

func CleanupTestHarness

func CleanupTestHarness()

CleanupTestHarness removes any tempfiles created by the test harness

func StartTestHarness

func StartTestHarness() error

StartTestHarness does what is necessary to be able to run the `migrate-from-v1` code against a host that doesn't actually have A1 installed. The test harness consists of these things:

  • sanity checks to make sure we actually don't have a1 installed, just in case.
  • a set of stub binaries for commands such as `automate-ctl`; StartTestHarness puts these in the PATH
  • a stub A1 API HTTP server.

These components generally support invoking failure modes by setting the `FAILURE` environment variable to a value as defined in a1upgrade/upgrade.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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