Documentation ¶
Overview ¶
cluster unit tests
Index ¶
Constants ¶
View Source
const ListOutput = `` /* 997-byte string literal not displayed */
View Source
const ListOutputOTC = `` /* 1040-byte string literal not displayed */
View Source
const Output = `` /* 779-byte string literal not displayed */
View Source
const OutputOTC = `` /* 831-byte string literal not displayed */
Variables ¶
View Source
var Expected = &clusters.Clusters{ Kind: "Cluster", ApiVersion: "v3", Metadata: clusters.MetaData{ Name: "test-cluster", Id: "daa97872-59d7-11e8-a787-0255ac101f54", }, Spec: clusters.Spec{ Type: "VirtualMachine", Flavor: "cce.s1.small", Version: "v1.7.3-r10", HostNetwork: clusters.HostNetworkSpec{ VpcId: "3305eb40-2707-4940-921c-9f335f84a2ca", SubnetId: "00e41db7-e56b-4946-bf91-27bb9effd664", }, ContainerNetwork: clusters.ContainerNetworkSpec{ Mode: "overlay_l2", }, BillingMode: 0, }, Status: clusters.Status{ Phase: "Available", Endpoints: []clusters.Endpoints{ {Url: "https://192.168.0.68:5443", Type: "Internal"}, }, }, }
View Source
var ExpectedOTC = &clusters.Clusters{ Kind: "Cluster", ApiVersion: "v3", Metadata: clusters.MetaData{ Name: "test-cluster", Id: "daa97872-59d7-11e8-a787-0255ac101f54", }, Spec: clusters.Spec{ Type: "VirtualMachine", Flavor: "cce.s1.small", Version: "v1.7.3-r10", HostNetwork: clusters.HostNetworkSpec{ VpcId: "3305eb40-2707-4940-921c-9f335f84a2ca", SubnetId: "00e41db7-e56b-4946-bf91-27bb9effd664", }, ContainerNetwork: clusters.ContainerNetworkSpec{ Mode: "overlay_l2", }, BillingMode: 0, }, Status: clusters.Status{ Phase: "Available", Endpoints: []clusters.Endpoints{ {Internal: "https://192.168.0.68:5443", External: "https://10.34.56.78:5443", ExternalOTC: "https://4d1ecb2c-229a-11e8-9c75-0255ac100ceb.container.eu-de.otc.t-systems.com"}, }, }, }
View Source
var ListExpected = []clusters.Clusters{ { Kind: "Cluster", ApiVersion: "v3", Metadata: clusters.MetaData{Name: "test123", Id: "daa97872-59d7-11e8-a787-0255ac101f54"}, Spec: clusters.Spec{Type: "VirtualMachine", Flavor: "cce.s1.small", HostNetwork: clusters.HostNetworkSpec{VpcId: "3305eb40-2707-4940-921c-9f335f84a2ca", SubnetId: "00e41db7-e56b-4946-bf91-27bb9effd664"}, ContainerNetwork: clusters.ContainerNetworkSpec{Mode: "overlay_l2"}, BillingMode: 0, Version: "v1.7.3-r10", }, Status: clusters.Status{Phase: "Available", Endpoints: []clusters.Endpoints{{Url: "https://192.168.0.68:5443", Type: "Internal"}}}, }, }
View Source
var ListExpectedOTC = []clusters.Clusters{ { Kind: "Cluster", ApiVersion: "v3", Metadata: clusters.MetaData{Name: "test123", Id: "daa97872-59d7-11e8-a787-0255ac101f54"}, Spec: clusters.Spec{Type: "VirtualMachine", Flavor: "cce.s1.small", HostNetwork: clusters.HostNetworkSpec{VpcId: "3305eb40-2707-4940-921c-9f335f84a2ca", SubnetId: "00e41db7-e56b-4946-bf91-27bb9effd664"}, ContainerNetwork: clusters.ContainerNetworkSpec{Mode: "overlay_l2"}, BillingMode: 0, Version: "v1.7.3-r10", }, Status: clusters.Status{ Phase: "Available", Endpoints: []clusters.Endpoints{ {Internal: "https://192.168.0.68:5443", External: "https://10.34.56.78:5443", ExternalOTC: "https://4d1ecb2c-229a-11e8-9c75-0255ac100ceb.container.eu-de.otc.t-systems.com"}, }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.