gophercloud: github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers/testing Index | Files

package testing

import "github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers/testing"

containers unit tests

Index

Package Files

doc.go fixtures.go

Variables

var ExpectedListInfo = []containers.Container{
    {
        Count: 0,
        Bytes: 0,
        Name:  "janeausten",
    },
    {
        Count: 1,
        Bytes: 14,
        Name:  "marktwain",
    },
}

ExpectedListInfo is the result expected from a call to `List` when full info is requested.

var ExpectedListNames = []string{"janeausten", "marktwain"}

ExpectedListNames is the result expected from a call to `List` when just container names are requested.

func HandleCreateContainerSuccessfully Uses

func HandleCreateContainerSuccessfully(t *testing.T)

HandleCreateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Create` response.

func HandleDeleteContainerSuccessfully Uses

func HandleDeleteContainerSuccessfully(t *testing.T)

HandleDeleteContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Delete` response.

func HandleGetContainerSuccessfully Uses

func HandleGetContainerSuccessfully(t *testing.T)

HandleGetContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Get` response.

func HandleListContainerInfoSuccessfully Uses

func HandleListContainerInfoSuccessfully(t *testing.T)

HandleListContainerInfoSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `List` response when full info is requested.

func HandleListContainerNamesSuccessfully Uses

func HandleListContainerNamesSuccessfully(t *testing.T)

HandleListContainerNamesSuccessfully creates an HTTP handler at `/` on the test handler mux that responds with a `ListNames` response when only container names are requested.

func HandleUpdateContainerSuccessfully Uses

func HandleUpdateContainerSuccessfully(t *testing.T)

HandleUpdateContainerSuccessfully creates an HTTP handler at `/testContainer` on the test handler mux that responds with a `Update` response.

Package testing imports 6 packages (graph). Updated 2019-08-13. Refresh now. Tools for package owners.