Rename tests
This commit is contained in:
parent
230bfa774c
commit
7424078a43
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/jetbrains-infra/packer-builder-vsphere/common"
|
||||
)
|
||||
|
||||
func TestBuilderAcc_default(t *testing.T) {
|
||||
func TestCloneBuilderAcc_default(t *testing.T) {
|
||||
config := defaultConfig()
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
|
@ -95,7 +95,7 @@ func checkDefault(t *testing.T, name string, host string, datastore string) buil
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_artifact(t *testing.T) {
|
||||
func TestCloneBuilderAcc_artifact(t *testing.T) {
|
||||
config := defaultConfig()
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
|
@ -120,7 +120,7 @@ func checkArtifact(t *testing.T) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_folder(t *testing.T) {
|
||||
func TestCloneBuilderAcc_folder(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: folderConfig(),
|
||||
|
@ -158,7 +158,7 @@ func checkFolder(t *testing.T, folder string) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_resourcePool(t *testing.T) {
|
||||
func TestCloneBuilderAcc_resourcePool(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: resourcePoolConfig(),
|
||||
|
@ -196,7 +196,7 @@ func checkResourcePool(t *testing.T, pool string) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_datastore(t *testing.T) {
|
||||
func TestCloneBuilderAcc_datastore(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: datastoreConfig(),
|
||||
|
@ -238,7 +238,7 @@ func checkDatastore(t *testing.T, name string) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_multipleDatastores(t *testing.T) {
|
||||
func TestCloneBuilderAcc_multipleDatastores(t *testing.T) {
|
||||
t.Skip("test must fail")
|
||||
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
|
@ -253,7 +253,7 @@ func multipleDatastoresConfig() string {
|
|||
return commonT.RenderConfig(config)
|
||||
}
|
||||
|
||||
func TestBuilderAcc_linkedClone(t *testing.T) {
|
||||
func TestCloneBuilderAcc_linkedClone(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: linkedCloneConfig(),
|
||||
|
@ -285,7 +285,7 @@ func checkLinkedClone(t *testing.T) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_hardware(t *testing.T) {
|
||||
func TestCloneBuilderAcc_hardware(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: hardwareConfig(),
|
||||
|
@ -344,7 +344,7 @@ func checkHardware(t *testing.T) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_RAMReservation(t *testing.T) {
|
||||
func TestCloneBuilderAcc_RAMReservation(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: RAMReservationConfig(),
|
||||
|
@ -378,7 +378,7 @@ func checkRAMReservation(t *testing.T) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_sshKey(t *testing.T) {
|
||||
func TestCloneBuilderAcc_sshKey(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: sshKeyConfig(),
|
||||
|
@ -393,7 +393,7 @@ func sshKeyConfig() string {
|
|||
return commonT.RenderConfig(config)
|
||||
}
|
||||
|
||||
func TestBuilderAcc_snapshot(t *testing.T) {
|
||||
func TestCloneBuilderAcc_snapshot(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: snapshotConfig(),
|
||||
|
@ -426,7 +426,7 @@ func checkSnapshot(t *testing.T) builderT.TestCheckFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBuilderAcc_template(t *testing.T) {
|
||||
func TestCloneBuilderAcc_template(t *testing.T) {
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
Template: templateConfig(),
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func TestBuilder_ImplementsBuilder(t *testing.T) {
|
||||
func TestCloneBuilder_ImplementsBuilder(t *testing.T) {
|
||||
var raw interface{}
|
||||
raw = &Builder{}
|
||||
if _, ok := raw.(packer.Builder); !ok {
|
||||
|
|
|
@ -5,12 +5,12 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func TestMinimalConfig(t *testing.T) {
|
||||
func TestCloneConfig_MinimalConfig(t *testing.T) {
|
||||
_, warns, errs := NewConfig(minimalConfig())
|
||||
testConfigOk(t, warns, errs)
|
||||
}
|
||||
|
||||
func TestMandatoryParameters(t *testing.T) {
|
||||
func TestCloneConfig_MandatoryParameters(t *testing.T) {
|
||||
params := []string{"vcenter_server", "username", "password", "template", "vm_name", "host"}
|
||||
for _, param := range params {
|
||||
raw := minimalConfig()
|
||||
|
@ -20,7 +20,7 @@ func TestMandatoryParameters(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestTimeout(t *testing.T) {
|
||||
func TestCloneConfig_Timeout(t *testing.T) {
|
||||
raw := minimalConfig()
|
||||
raw["shutdown_timeout"] = "3m"
|
||||
conf, warns, err := NewConfig(raw)
|
||||
|
@ -30,7 +30,7 @@ func TestTimeout(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestRAMReservation(t *testing.T) {
|
||||
func TestCloneConfig_RAMReservation(t *testing.T) {
|
||||
raw := minimalConfig()
|
||||
raw["RAM_reservation"] = 1000
|
||||
raw["RAM_reserve_all"] = true
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func TestBuilderAcc_default(t *testing.T) {
|
||||
func TestISOBuilderAcc_default(t *testing.T) {
|
||||
config := defaultConfig()
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
Builder: &Builder{},
|
||||
|
@ -26,7 +26,7 @@ func defaultConfig() map[string]interface{} {
|
|||
"ssh_username": "root",
|
||||
"ssh_password": "jetbrains",
|
||||
|
||||
"vm_name": commonT.NewVMName(),
|
||||
"vm_name": commonT.NewVMName(),
|
||||
}
|
||||
|
||||
return config
|
||||
|
|
Loading…
Reference in New Issue