Fix file resource regression

I added a regression to the file resource. This was caused by two
different bugs that I added when I switched the API to use checkapply. I
would have caught these issues, except my test cases *also* had a bug! I
think I've fixed all three issues now.

Lastly, when running on travis, the tests behave very differently! Some
of the tests actually fail, and it's not clear why. As a result, we had
to disable them! I guess you get what you pay for.
This commit is contained in:
James Shubin
2016-02-27 23:51:15 -05:00
parent da494cdc7c
commit 1a164cee3e
13 changed files with 109 additions and 13 deletions

2
pkg.go
View File

@@ -248,6 +248,8 @@ func (obj *PkgRes) CheckApply(apply bool) (stateok bool, err error) {
return false, nil
}
// apply portion
log.Printf("%v[%v]: Apply", obj.Kind(), obj.GetName())
packageList := []string{usePackageId}
var transactionFlags uint64 = 0
if !obj.AllowUntrusted { // allow