Enable Open tests for Exec/Java
This commit is contained in:
parent
594cc6b9a8
commit
787164044d
|
@ -33,11 +33,6 @@ func TestExecDriver_Fingerprint(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
TODO: This test is disabled til a follow-up api changes the restore state interface.
|
||||
The driver/executor interface will be changed from Open to Cleanup, in which
|
||||
clean-up tears down previous allocs.
|
||||
|
||||
func TestExecDriver_StartOpen_Wait(t *testing.T) {
|
||||
ctestutils.ExecCompatible(t)
|
||||
task := &structs.Task{
|
||||
|
@ -54,12 +49,6 @@ func TestExecDriver_StartOpen_Wait(t *testing.T) {
|
|||
defer ctx.AllocDir.Destroy()
|
||||
d := NewExecDriver(driverCtx)
|
||||
|
||||
if task.Resources == nil {
|
||||
task.Resources = &structs.Resources{}
|
||||
}
|
||||
task.Resources.CPU = 0.5
|
||||
task.Resources.MemoryMB = 2
|
||||
|
||||
handle, err := d.Start(ctx, task)
|
||||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
|
@ -77,7 +66,6 @@ func TestExecDriver_StartOpen_Wait(t *testing.T) {
|
|||
t.Fatalf("missing handle")
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
func TestExecDriver_Start_Wait(t *testing.T) {
|
||||
ctestutils.ExecCompatible(t)
|
||||
|
|
|
@ -41,18 +41,18 @@ func TestJavaDriver_Fingerprint(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
TODO: This test is disabled til a follow-up api changes the restore state interface.
|
||||
The driver/executor interface will be changed from Open to Cleanup, in which
|
||||
clean-up tears down previous allocs.
|
||||
func TestJavaDriver_StartOpen_Wait(t *testing.T) {
|
||||
ctestutils.ExecCompatible(t)
|
||||
if !javaLocated() {
|
||||
t.Skip("Java not found; skipping")
|
||||
}
|
||||
|
||||
ctestutils.JavaCompatible(t)
|
||||
task := &structs.Task{
|
||||
Name: "demo-app",
|
||||
Config: map[string]string{
|
||||
"jar_source": "https://dl.dropboxusercontent.com/u/47675/jar_thing/demoapp.jar",
|
||||
// "jar_source": "https://s3-us-west-2.amazonaws.com/java-jar-thing/demoapp.jar",
|
||||
// "args": "-d64",
|
||||
"artifact_source": "https://dl.dropboxusercontent.com/u/47675/jar_thing/demoapp.jar",
|
||||
"jvm_options": "-Xmx2048m -Xms256m",
|
||||
"checksum": "sha256:58d6e8130308d32e197c5108edd4f56ddf1417408f743097c2e662df0f0b17c8",
|
||||
},
|
||||
Resources: basicResources,
|
||||
}
|
||||
|
@ -86,7 +86,6 @@ func TestJavaDriver_StartOpen_Wait(t *testing.T) {
|
|||
t.Fatalf("Error: %s", err)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
func TestJavaDriver_Start_Wait(t *testing.T) {
|
||||
if !javaLocated() {
|
||||
|
|
Loading…
Reference in a new issue