Documentation ¶
Index ¶
- Constants
- Variables
- func HandleCreateClusterTemplateSuccessfully(t *testing.T)
- func HandleDeleteClusterSuccessfully(t *testing.T)
- func HandleGetClusterTemplateEmptyTimeSuccessfully(t *testing.T)
- func HandleGetClusterTemplateSuccessfully(t *testing.T)
- func HandleListClusterTemplateSuccessfully(t *testing.T)
- func HandleUpdateClusterTemplateEmptyTimeSuccessfully(t *testing.T)
- func HandleUpdateClusterTemplateInvalidUpdate(t *testing.T)
- func HandleUpdateClusterTemplateSuccessfully(t *testing.T)
Constants ¶
View Source
const ClusterTemplateListResponse = `` /* 2573-byte string literal not displayed */
View Source
const ClusterTemplateResponse = `` /* 1315-byte string literal not displayed */
View Source
const ClusterTemplateResponse_EmptyTime = `` /* 1053-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 1076-byte string literal not displayed */
View Source
const UpdateResponse_EmptyTime = `` /* 1053-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", Hidden: false, }
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: "", Hidden: false, }
View Source
var ExpectedClusterTemplates = []clustertemplates.ClusterTemplate{ExpectedClusterTemplate, ExpectedClusterTemplate_EmptyTime}
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: "", Hidden: false, }
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: "", Hidden: false, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.