testing

package
v0.0.0-...-80377ec Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

resource types unit tests

Index

Constants

View Source
const ResourceTypeCreateWithAttributesRequest = `` /* 284-byte string literal not displayed */

ResourceTypeCreateWithAttributesRequest represents a request to create a resource type with attributes.

View Source
const ResourceTypeCreateWithAttributesResult = `` /* 336-byte string literal not displayed */

ResourceTypeCreateWithAttributesResult represents a raw server response to the ResourceTypeCreateWithAttributesRequest.

View Source
const ResourceTypeCreateWithoutAttributesRequest = `
{
    "name":"identity_project"
}
`

ResourceTypeCreateWithoutAttributesRequest represents a request to create a resource type without attributes.

View Source
const ResourceTypeCreateWithoutAttributesResult = `
{
    "attributes": {},
    "state": "active",
    "name": "identity_project"
}
`

ResourceTypeCreateWithoutAttributesResult represents a raw server response to the ResourceTypeCreateWithoutAttributesRequest.

View Source
const ResourceTypeGetResult = `` /* 325-byte string literal not displayed */

ResourceTypeGetResult represents raw server response from a server to a get request.

View Source
const ResourceTypeListResult = `` /* 592-byte string literal not displayed */

ResourceTypeListResult represents raw server response from a server to a list call.

View Source
const ResourceTypeUpdateRequest = `` /* 471-byte string literal not displayed */

ResourceTypeUpdateRequest represents a request to update a resource type.

View Source
const ResourceTypeUpdateResult = `` /* 414-byte string literal not displayed */

ResourceTypeUpdateResult represents a raw server response to the ResourceTypeUpdateRequest.

Variables

View Source
var ResourceType1 = resourcetypes.ResourceType{
	Name:       "generic",
	State:      "active",
	Attributes: map[string]resourcetypes.Attribute{},
}

ResourceType1 is an expected representation of a first resource from the ResourceTypeListResult.

View Source
var ResourceType2 = resourcetypes.ResourceType{
	Name:  "identity_project",
	State: "active",
	Attributes: map[string]resourcetypes.Attribute{
		"parent_id": {
			Type: "uuid",
			Details: map[string]interface{}{
				"required": false,
			},
		},
	},
}

ResourceType2 is an expected representation of a first resource from the ResourceTypeListResult.

View Source
var ResourceType3 = resourcetypes.ResourceType{
	Name:  "compute_instance",
	State: "active",
	Attributes: map[string]resourcetypes.Attribute{
		"host": {
			Type: "string",
			Details: map[string]interface{}{
				"max_length": float64(128),
				"min_length": float64(0),
				"required":   true,
			},
		},
	},
}

ResourceType3 is an expected representation of a first resource from the ResourceTypeListResult.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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