testing

package
v0.5.36 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MPL-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.5.20

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