testing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterTemplateListResponse = `` /* 2533-byte string literal not displayed */
View Source
const ClusterTemplateResponse = `` /* 1297-byte string literal not displayed */
View Source
const ClusterTemplateResponse_EmptyTime = `` /* 1035-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 1058-byte string literal not displayed */
View Source
const UpdateResponse_EmptyTime = `` /* 1035-byte string literal not displayed */
View Source
const UpdateResponse_InvalidUpdate = `` /* 216-byte string literal not displayed */

Variables

View Source
var ExpectedClusterTemplate = clustertemplates.ClusterTemplate{
	APIServerPort:       8081,
	COE:                 "kubernetes",
	ClusterDistro:       "fedora-atomic",
	CreatedAt:           time.Date(2018, 6, 27, 16, 52, 21, 0, time.UTC),
	DNSNameServer:       "8.8.8.8",
	DockerStorageDriver: "devicemapper",
	DockerVolumeSize:    3,
	ExternalNetworkID:   "public",
	FixedNetwork:        "",
	FixedSubnet:         "",
	FlavorID:            "m1.small",
	FloatingIPEnabled:   true,
	HTTPProxy:           "http://10.164.177.169:8080",
	HTTPSProxy:          "http://10.164.177.169:8080",
	ImageID:             "Fedora-Atomic-27-20180212.2.x86_64",
	InsecureRegistry:    "",
	KeyPairID:           "kp",
	Labels:              map[string]string(nil),
	Links: []gophercloud.Link{
		{Href: "http://10.63.176.154:9511/v1/clustertemplates/79c0f9e5-93b8-4719-8fab-063afc67bffe", Rel: "self"},
		{Href: "http://10.63.176.154:9511/clustertemplates/79c0f9e5-93b8-4719-8fab-063afc67bffe", Rel: "bookmark"},
	},
	MasterFlavorID:  "",
	MasterLBEnabled: true,
	Name:            "kubernetes-dev",
	NetworkDriver:   "flannel",
	NoProxy:         "10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
	ProjectID:       "76bd201dbc1641729904ab190d3390c6",
	Public:          false,
	RegistryEnabled: false,
	ServerType:      "vm",
	TLSDisabled:     false,
	UUID:            "79c0f9e5-93b8-4719-8fab-063afc67bffe",
	UpdatedAt:       time.Time{},
	UserID:          "c48d66144e9c4a54ae2b164b85cfefe3",
	VolumeDriver:    "cinder",
}
View Source
var ExpectedClusterTemplate_EmptyTime = clustertemplates.ClusterTemplate{
	COE:                 "kubernetes",
	ClusterDistro:       "fedora-atomic",
	CreatedAt:           time.Time{},
	DNSNameServer:       "8.8.8.8",
	DockerStorageDriver: "",
	DockerVolumeSize:    5,
	ExternalNetworkID:   "public",
	FixedNetwork:        "",
	FixedSubnet:         "",
	FlavorID:            "m1.small",
	HTTPProxy:           "",
	HTTPSProxy:          "",
	ImageID:             "fedora-atomic-latest",
	InsecureRegistry:    "",
	KeyPairID:           "testkey",
	Labels:              map[string]string{},
	Links: []gophercloud.Link{
		{Href: "http://65.61.151.130:9511/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "bookmark"},
		{Href: "http://65.61.151.130:9511/v1/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "self"},
	},
	MasterFlavorID:  "",
	MasterLBEnabled: false,
	Name:            "kubernetes-dev",
	NetworkDriver:   "flannel",
	NoProxy:         "",
	Public:          false,
	RegistryEnabled: false,
	ServerType:      "vm",
	TLSDisabled:     false,
	UUID:            "472807c2-f175-4946-9765-149701a5aba7",
	UpdatedAt:       time.Time{},
	VolumeDriver:    "",
}
View Source
var ExpectedUpdateClusterTemplate = clustertemplates.ClusterTemplate{
	COE:                 "kubernetes",
	ClusterDistro:       "fedora-atomic",
	CreatedAt:           time.Date(2016, 8, 10, 13, 47, 01, 0, time.UTC),
	DNSNameServer:       "8.8.8.8",
	DockerStorageDriver: "",
	DockerVolumeSize:    5,
	ExternalNetworkID:   "public",
	FixedNetwork:        "",
	FixedSubnet:         "",
	FlavorID:            "m1.small",
	HTTPProxy:           "",
	HTTPSProxy:          "",
	ImageID:             "fedora-atomic-latest",
	InsecureRegistry:    "",
	KeyPairID:           "testkey",
	Labels:              map[string]string{},
	Links: []gophercloud.Link{
		{Href: "http://65.61.151.130:9511/v1/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "self"},
		{Href: "http://65.61.151.130:9511/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "bookmark"},
	},
	MasterFlavorID:  "",
	MasterLBEnabled: false,
	Name:            "kubernetes-dev",
	NetworkDriver:   "flannel",
	NoProxy:         "",
	Public:          false,
	RegistryEnabled: false,
	ServerType:      "vm",
	TLSDisabled:     false,
	UUID:            "472807c2-f175-4946-9765-149701a5aba7",
	UpdatedAt:       time.Time{},
	VolumeDriver:    "",
}
View Source
var ExpectedUpdateClusterTemplate_EmptyTime = clustertemplates.ClusterTemplate{
	COE:                 "kubernetes",
	ClusterDistro:       "fedora-atomic",
	CreatedAt:           time.Time{},
	DNSNameServer:       "8.8.8.8",
	DockerStorageDriver: "",
	DockerVolumeSize:    5,
	ExternalNetworkID:   "public",
	FixedNetwork:        "",
	FixedSubnet:         "",
	FlavorID:            "m1.small",
	HTTPProxy:           "",
	HTTPSProxy:          "",
	ImageID:             "fedora-atomic-latest",
	InsecureRegistry:    "",
	KeyPairID:           "testkey",
	Labels:              map[string]string{},
	Links: []gophercloud.Link{
		{Href: "http://65.61.151.130:9511/v1/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "self"},
		{Href: "http://65.61.151.130:9511/clustertemplates/472807c2-f175-4946-9765-149701a5aba7", Rel: "bookmark"},
	},
	MasterFlavorID:  "",
	MasterLBEnabled: false,
	Name:            "kubernetes-dev",
	NetworkDriver:   "flannel",
	NoProxy:         "",
	Public:          false,
	RegistryEnabled: false,
	ServerType:      "vm",
	TLSDisabled:     false,
	UUID:            "472807c2-f175-4946-9765-149701a5aba7",
	UpdatedAt:       time.Time{},
	VolumeDriver:    "",
}

Functions

func HandleCreateClusterTemplateSuccessfully

func HandleCreateClusterTemplateSuccessfully(t *testing.T)

func HandleDeleteClusterSuccessfully

func HandleDeleteClusterSuccessfully(t *testing.T)

func HandleGetClusterTemplateEmptyTimeSuccessfully

func HandleGetClusterTemplateEmptyTimeSuccessfully(t *testing.T)

func HandleGetClusterTemplateSuccessfully

func HandleGetClusterTemplateSuccessfully(t *testing.T)

func HandleListClusterTemplateSuccessfully

func HandleListClusterTemplateSuccessfully(t *testing.T)

func HandleUpdateClusterTemplateEmptyTimeSuccessfully

func HandleUpdateClusterTemplateEmptyTimeSuccessfully(t *testing.T)

func HandleUpdateClusterTemplateInvalidUpdate

func HandleUpdateClusterTemplateInvalidUpdate(t *testing.T)

func HandleUpdateClusterTemplateSuccessfully

func HandleUpdateClusterTemplateSuccessfully(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