testing

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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