tests: add functional tests for buildpacks plugin
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user