Tests: Should not error when template is to be created during build

pull/7951/head
DanHam 7 years ago
parent 4b042ac402
commit 19f3a63ee1
No known key found for this signature in database
GPG Key ID: 58E79AEDD6AA987E

@ -148,7 +148,14 @@ func TestPostProcessorPrepare_vagrantfileTemplateExists(t *testing.T) {
}
if err := p.Configure(c); err == nil {
t.Fatal("expected an error since vagrantfile_template does not exist")
t.Fatal("expected error since vagrantfile_template does not exist and vagrantfile_template_generated is unset")
}
// The vagrantfile_template will be generated during the build process
c["vagrantfile_template_generated"] = true
if err := p.Configure(c); err != nil {
t.Fatal("no error expected due to missing vagrantfile_template as vagrantfile_template_generated is set")
}
}

Loading…
Cancel
Save