Documentation ¶
Overview ¶
Package v1 package contains acceptance tests for the Openstack Clustering V1 service.
Index ¶
- Variables
- func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, profileID string) (*clusters.Cluster, error)
- func CreateMessageReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
- func CreateNode(t *testing.T, client *gophercloud.ServiceClient, clusterID, profileID string) (*nodes.Node, error)
- func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient) (*policies.Policy, error)
- func CreateProfile(t *testing.T, client *gophercloud.ServiceClient) (*profiles.Profile, error)
- func CreateWebhookReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
- func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteNode(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteProfile(t *testing.T, client *gophercloud.ServiceClient, id string)
- func DeleteReceiver(t *testing.T, client *gophercloud.ServiceClient, id string)
- func GetActionID(headers http.Header) (string, error)
- func WaitForAction(client *gophercloud.ServiceClient, actionID string) error
- func WaitForNodeStatus(client *gophercloud.ServiceClient, id string, status string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateCluster ¶
func CreateCluster(t *testing.T, client *gophercloud.ServiceClient, profileID string) (*clusters.Cluster, error)
CreateCluster creates a random cluster. An error will be returned if the cluster could not be created.
func CreateMessageReceiver ¶
func CreateMessageReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
CreateMessageReceiver will create a message receiver with a random name. An error will be returned if the receiver could not be created.
func CreateNode ¶
func CreateNode(t *testing.T, client *gophercloud.ServiceClient, clusterID, profileID string) (*nodes.Node, error)
CreateNode creates a random node. An error will be returned if the node could not be created.
func CreatePolicy ¶
func CreatePolicy(t *testing.T, client *gophercloud.ServiceClient) (*policies.Policy, error)
CreatePolicy creates a random policy. An error will be returned if the policy could not be created.
func CreateProfile ¶
func CreateProfile(t *testing.T, client *gophercloud.ServiceClient) (*profiles.Profile, error)
CreateProfile will create a random profile. An error will be returned if the profile could not be created.
func CreateWebhookReceiver ¶
func CreateWebhookReceiver(t *testing.T, client *gophercloud.ServiceClient, clusterID string) (*receivers.Receiver, error)
CreateWebhookReceiver will create a random webhook receiver. An error will be returned if the receiver could not be created.
func DeleteCluster ¶
func DeleteCluster(t *testing.T, client *gophercloud.ServiceClient, id string)
DeleteCluster will delete a given policy. A fatal error will occur if the cluster could not be deleted. This works best as a deferred function.
func DeleteNode ¶
func DeleteNode(t *testing.T, client *gophercloud.ServiceClient, id string)
DeleteNode will delete a given node. A fatal error will occur if the node could not be deleted. This works best as a deferred function.
func DeletePolicy ¶
func DeletePolicy(t *testing.T, client *gophercloud.ServiceClient, id string)
DeletePolicy will delete a given policy. A fatal error will occur if the policy could not be deleted. This works best as a deferred function.
func DeleteProfile ¶
func DeleteProfile(t *testing.T, client *gophercloud.ServiceClient, id string)
DeleteProfile will delete a given profile. A fatal error will occur if the profile could not be deleted. This works best as a deferred function.
func DeleteReceiver ¶
func DeleteReceiver(t *testing.T, client *gophercloud.ServiceClient, id string)
DeleteReceiver will delete a given receiver. A fatal error will occur if the receiver could not be deleted. This works best as a deferred function.
func GetActionID ¶
GetActionID parses an HTTP header and returns the action ID.
func WaitForAction ¶
func WaitForAction(client *gophercloud.ServiceClient, actionID string) error
func WaitForNodeStatus ¶
func WaitForNodeStatus(client *gophercloud.ServiceClient, id string, status string) error
Types ¶
This section is empty.