Documentation ¶
Overview ¶
node unit tests
Index ¶
Constants ¶
View Source
const JobOutput = `` /* 2011-byte string literal not displayed */
View Source
const Output = `` /* 605-byte string literal not displayed */
Variables ¶
View Source
var Expected = &nodes.Nodes{ Kind: "Host", Apiversion: "v3", Metadata: nodes.Metadata{Name: "test-node"}, Spec: nodes.Spec{ Flavor: "s3.large.2", Az: "cn-east-2a", Login: nodes.LoginSpec{ SshKey: "test-keypair", }, ExtendParam: nodes.ExtendParam{}, PublicIP: nodes.PublicIPSpec{Eip: nodes.EipSpec{Bandwidth: nodes.BandwidthOpts{}, IpType: ""}}, RootVolume: nodes.VolumeSpec{ VolumeType: "SATA", Size: 40, }, DataVolumes: []nodes.VolumeSpec{ { VolumeType: "SATA", Size: 100, }, }, Runtime: nodes.RuntimeSpec{ Name: "containerd", }, }, }
View Source
var ExpectedJob = &nodes.Job{ Kind: "Job", Status: nodes.JobStatus{Phase: "Success"}, Metadata: nodes.JobMetadata{ID: "73ce052c-8b1b-11e8-8f9d-0255ac10193f"}, Spec: nodes.JobSpec{Type: "ScaleupCluster", ClusterID: "6951aa4d-88ef-11e8-b196-0255ac101c43", ResourceName: "cluster-test", SubJobs: []nodes.Job{{Kind: "Job", Metadata: nodes.JobMetadata{ID: "73cc28df-8b1b-11e8-8f9d-0255ac10193f"}, Spec: nodes.JobSpec{Type: "CreateNode", ClusterID: "6951aa4d-88ef-11e8-b196-0255ac101c43", ResourceName: "myhost", SubJobs: []nodes.Job{{Kind: "Job", Metadata: nodes.JobMetadata{ID: "73ce03fd-8b1b-11e8-8f9d-0255ac10193f"}, Spec: nodes.JobSpec{Type: "GetPSMCert", ClusterID: "6951aa4d-88ef-11e8-b196-0255ac101c43"}, Status: nodes.JobStatus{Phase: "Success"}}, {Kind: "Job", Metadata: nodes.JobMetadata{ID: "73ce0473-8b1b-11e8-8f9d-0255ac10193f"}, Spec: nodes.JobSpec{Type: "InstallNode", ClusterID: "6951aa4d-88ef-11e8-b196-0255ac101c43", ResourceID: "73bd7e31-8b1b-11e8-8f9d-0255ac10193f"}, Status: nodes.JobStatus{Phase: "Success"}}, }, }, }}, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.