testing

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

resources unit tests

Index

Constants

View Source
const MetadataResponse = `
{
	"some_key": "some_value",
	"some_other_key": "some_other_value"
}
`
View Source
const SignalRequest = `
{
	"some_key": "some_value",
	"some_other_key": "some_other_value"
}
`

Variables

View Source
var (
	Metadata = map[string]interface{}{
		"some_key":       "some_value",
		"some_other_key": "some_other_value",
	}

	StackResourceList1 = resources.ResourceList{
		CreationTime:         creationTime,
		UpdatedTime:          &updatedTime,
		LogicalResourceID:    "etcd_lb",
		PhysicalResourceID:   "da7a7e75-28ff-4813-88a8-9ab583ac227f",
		RequiredBy:           []string{"etcd_address_lb_switch", "kube_masters"},
		ResourceName:         "etcd_lb",
		ResourceStatus:       "UPDATE_COMPLETE",
		ResourceStatusReason: &resourceStatusReason,
		ResourceType:         "file:///opt/stack/magnum/magnum/drivers/common/templates/lb_etcd.yaml",
	}
	StackResource1 = resources.Resource{
		ResourceList: &StackResourceList1,
		Description:  "",
		Attributes: map[string]interface{}{
			"True":    nil,
			"pool_id": "1a652ee9-1d09-4f33-a4b7-e81bf13da180",
			"address": "10.0.0.17",
		},
	}
	ExpectedStackResourceList1 = []resources.ResourceList{StackResourceList1}
)
View Source
var GetResponse = `` /* 625-byte string literal not displayed */
View Source
var ListResponse = `` /* 576-byte string literal not displayed */
View Source
var MarkUnhealthyRequest = `
{
	"mark_unhealthy": true
}
`

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