testing

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MetadataCreateRequest = `
{
"test1": "test1", 
"test2": "test2"
}
`
View Source
const MetadataListResponse = `` /* 215-byte string literal not displayed */
View Source
const MetadataResponse = `
{
  "key": "some_key",
  "value": "some_val",
  "read_only": false
}
`

Variables

View Source
var (
	ResourceMetadata = map[string]interface{}{
		"some_key": "some_val",
	}

	ResourceMetadataReadOnly = metadata.Metadata{
		Key:      "some_key",
		Value:    "some_val",
		ReadOnly: false,
	}

	Metadata1 = metadata.Metadata{
		Key:      "cost-center",
		Value:    "Atlanta",
		ReadOnly: false,
	}
	Metadata2 = metadata.Metadata{
		Key:      "data-center",
		Value:    "A",
		ReadOnly: false,
	}
	ExpectedMetadataList = []metadata.Metadata{Metadata1, Metadata2}
)

Functions

This section is empty.

Types

type TestFunc

type TestFunc func(t *testing.T)

func BuildTestMetadataCreate

func BuildTestMetadataCreate(resourceName string, resourceID string, extraParams ...string) TestFunc

func BuildTestMetadataDelete

func BuildTestMetadataDelete(resourceName string, resourceID string, extraParams ...string) TestFunc

func BuildTestMetadataGet

func BuildTestMetadataGet(resourceName string, resourceID string, extraParams ...string) TestFunc

func BuildTestMetadataListAll

func BuildTestMetadataListAll(resourceName string, resourceID string, extraParams ...string) TestFunc

func BuildTestMetadataUpdate

func BuildTestMetadataUpdate(resourceName string, resourceID string, extraParams ...string) TestFunc

type UrlFunc

type UrlFunc func(c *gcorecloud.ServiceClient, id string, args ...string)

Jump to

Keyboard shortcuts

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