tests: add functional tests for buildpacks plugin

This commit is contained in:
Jose Diaz-Gonzalez
2019-01-22 00:22:35 -05:00
parent 6cae92e1f1
commit d3d426a8d9
5 changed files with 221 additions and 3 deletions

View File

@@ -35,7 +35,8 @@ func CommandClear(args []string) (err error) {
return
}
return common.PropertyDelete("buildpacks", appName, "buildpacks")
common.PropertyDelete("buildpacks", appName, "buildpacks")
return
}
// CommandList implements buildpacks:list

View File

@@ -114,7 +114,7 @@ func PropertyListAdd(pluginName string, appName string, property string, value s
lines = append(lines, line)
}
if index == 0 {
if index == 0 || index > len(scannedLines) {
lines = append(lines, value)
}