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.
Click to show internal directories.
Click to hide internal directories.