Help us shape the future of Go! Take the 2026 Go Developer Survey

testing

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

clustering_receivers_v1

Index

Constants

View Source
const CreateResponse = `` /* 645-byte string literal not displayed */
View Source
const GetResponse = `` /* 645-byte string literal not displayed */
View Source
const ListResponse = `` /* 657-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 627-byte string literal not displayed */

Variables

View Source
var ExpectedReceiver = receivers.Receiver{
	Action: "CLUSTER_SCALE_OUT",
	Actor: map[string]interface{}{
		"trust_id": []string{
			"6dc6d336e3fc4c0a951b5698cd1236d9",
		},
	},
	Channel: map[string]interface{}{
		"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1",
	},
	ClusterID: "ae63a10b-4a90-452c-aef1-113a0b255ee3",
	CreatedAt: time.Date(2015, 11, 4, 5, 21, 41, 0, time.UTC),
	Domain:    "Default",
	ID:        "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
	Name:      "cluster_inflate",
	Params: map[string]interface{}{
		"count": "1",
	},
	Project:   "6e18cc2bdbeb48a5b3cad2dc499f6804",
	Type:      "webhook",
	UpdatedAt: time.Date(2016, 11, 4, 5, 21, 41, 0, time.UTC),
	User:      "b4ad2d6e18cc2b9c48049f6dbe8a5b3c",
}
View Source
var ExpectedReceiversList = []receivers.Receiver{ExpectedUpdateReceiver}
View Source
var ExpectedUpdateReceiver = receivers.Receiver{
	Action: "CLUSTER_SCALE_OUT",
	Actor: map[string]interface{}{
		"trust_id": []string{
			"6dc6d336e3fc4c0a951b5698cd1236d9",
		},
	},
	Channel: map[string]interface{}{
		"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1",
	},
	ClusterID: "ae63a10b-4a90-452c-aef1-113a0b255ee3",
	CreatedAt: time.Date(2015, 6, 27, 5, 9, 43, 0, time.UTC),
	Domain:    "Default",
	ID:        "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
	Name:      "cluster_inflate",
	Params: map[string]interface{}{
		"count": "1",
	},
	Project: "6e18cc2bdbeb48a5b3cad2dc499f6804",
	Type:    "webhook",
	User:    "b4ad2d6e18cc2b9c48049f6dbe8a5b3c",
}

Functions

func HandleCreateSuccessfully

func HandleCreateSuccessfully(t *testing.T)

func HandleDeleteSuccessfully

func HandleDeleteSuccessfully(t *testing.T)

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

func HandleListSuccessfully

func HandleListSuccessfully(t *testing.T)

func HandleUpdateSuccessfully

func HandleUpdateSuccessfully(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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