e2e

package
v0.0.0-...-536d3ef Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

Test Icinga2 Custom Plugins

Configure Kubernetes Client

It reads local ~/.kube/config data and uses current-context for cluster and auth information.

Run Test

Run following command to test Plugins

  • component_status

      go test -v github.com/appscode/searchlight/test -run ^TestComponentStatus$
    
  • json_path

      go test -v github.com/appscode/searchlight/test -run ^TestJsonPath$
    
  • kube_event

      go test -v github.com/appscode/searchlight/test -run ^TestKubeEvent$
    
  • node_count

      go test -v github.com/appscode/searchlight/test -run ^TestNodeCount$
    
  • node_status

      go test -v github.com/appscode/searchlight/test -run ^TestNodeStatus$
    

Following two will create temporary kubernetes objects to test

  • kube_exec

      go test -v github.com/appscode/searchlight/test -run ^TestKubeExec$
    
  • pod_exists & pod_status

      go test -v github.com/appscode/searchlight/test -run ^TestPodExistsPodStatus$
    

To run all Test

go test -v github.com/appscode/searchlight/test

Run following command for E2E test

  • MultipleAlerts

      go test -v github.com/appscode/searchlight/test -run ^TestMultipleAlerts$
    
  • MultipleAlertsOnMultipleObjects

      go test -v github.com/appscode/searchlight/test -run ^TestMultipleAlertsOnMultipleObjects$
    

Documentation

Index

Constants

View Source
const (
	IcingaAddress string = ""
	IcingaAPIUser string = ""
	IcingaAPIPass string = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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