functional

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

README

fleet functional tests

This functional test suite deploys a fleet cluster nspawn containers and asserts fleet is functioning properly. It shares etcd deployed on the host machine with each of the nspawn containers.

The caller must do three things before running the tests:

  1. Ensure an ssh-agent is running and the functional-testing identity is loaded. The SSH_AUTH_SOCK environment variable must be set.
$ ssh-agent
$ ssh-add fleet/functional/fixtures/id_rsa
$ echo $SSH_AUTH_SOCK
/tmp/ssh-kwmtTOsL7978/agent.7978
  1. The FLEETCTL_BIN environment variable must point to the fleetctl binary that should be used to drive the actual tests.
$ export FLEETCTL_BIN=/usr/bin/fleetctl
  1. Make sure etcd is running on the host system
$ systemctl start etcd

Then the tests can be run (probably as root):

$ go test github.com/coreos/fleet/functional
ok  	github.com/coreos/fleet/functional	9.479s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnitState

type UnitState struct {
	Name        string
	ActiveState string
	Machine     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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