testing

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 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

Overview

clustering_profiles_v1

Index

Constants

View Source
const CreateResponse = `` /* 667-byte string literal not displayed */
View Source
const GetResponse = `` /* 657-byte string literal not displayed */
View Source
const ListResponse = `` /* 2109-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 699-byte string literal not displayed */
View Source
const ValidateResponse = `` /* 608-byte string literal not displayed */

Variables

View Source
var ExpectedCreate = profiles.Profile{
	CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC),
	Domain:    "",
	ID:        "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata:  map[string]interface{}{},
	Name:      "test-profile",
	Project:   "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor": "t2.small",
			"image":  "centos7.3-latest",
			"name":   "centos_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private-network"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type:      "os.nova.server-1.0",
	UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC),
	User:      "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedGet = profiles.Profile{
	CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC),
	Domain:    "",
	ID:        "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata:  map[string]interface{}{},
	Name:      "pserver",
	Project:   "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   float64(1),
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type: "os.nova.server-1.0",
	User: "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedListProfile1 = profiles.Profile{
	CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC),
	Domain:    "",
	ID:        "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata:  map[string]interface{}{},
	Name:      "pserver",
	Project:   "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   "t2.small",
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type:      "os.nova.server-1.0",
	UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC),
	User:      "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedListProfile2 = profiles.Profile{
	Domain:   "",
	ID:       "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata: map[string]interface{}{},
	Name:     "pserver",
	Project:  "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   "t2.small",
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type: "os.nova.server-1.0",
	User: "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedListProfile3 = profiles.Profile{
	Domain:   "",
	ID:       "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata: map[string]interface{}{},
	Name:     "pserver",
	Project:  "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   "t2.small",
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type: "os.nova.server-1.0",
	User: "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedUpdate = profiles.Profile{
	CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC),
	Domain:    "",
	ID:        "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata:  map[string]interface{}{"foo": "bar"},
	Name:      "pserver",
	Project:   "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   float64(1),
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type:      "os.nova.server-1.0",
	UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC),
	User:      "5e5bf8027826429c96af157f68dc9072",
}
View Source
var ExpectedValidate = profiles.Profile{
	CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC),
	Domain:    "",
	ID:        "9e1c6f42-acf5-4688-be2c-8ce954ef0f23",
	Metadata:  map[string]interface{}{},
	Name:      "pserver",
	Project:   "42d9e9663331431f97b75e25136307ff",
	Spec: profiles.Spec{
		Properties: map[string]interface{}{
			"flavor":   "t2.micro",
			"image":    "cirros-0.3.4-x86_64-uec",
			"key_name": "oskey",
			"name":     "cirros_server",
			"networks": []interface{}{
				map[string]interface{}{"network": "private"},
			},
		},
		Type:    "os.nova.server",
		Version: "1.0",
	},
	Type:      "os.nova.server-1.0",
	UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC),
	User:      "5e5bf8027826429c96af157f68dc9072",
}

Functions

func HandleCreateSuccessfully

func HandleCreateSuccessfully(t *testing.T)

func HandleDeleteSuccessfully

func HandleDeleteSuccessfully(t *testing.T)

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

func HandleListSuccessfully

func HandleListSuccessfully(t *testing.T)

func HandleUpdateSuccessfully

func HandleUpdateSuccessfully(t *testing.T)

func HandleValidateSuccessfully

func HandleValidateSuccessfully(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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