mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 12:40:57 +01:00
Changes:
- had to add a Type field to interface DbEntry so that db.List() is able to distinguish between Upload and Form properly. - added form describe and delete commands - added --query parameter to form+upload list for filtering
This commit is contained in:
@@ -295,7 +295,7 @@ func TestDescribe(t *testing.T) {
|
||||
var w bytes.Buffer
|
||||
unit.route += unit.files[0]
|
||||
Intercept(unit)
|
||||
Check(t, unit, &w, Describe(&w, conf, unit.files))
|
||||
Check(t, unit, &w, Describe(&w, conf, unit.files, common.TypeUpload))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,9 +345,9 @@ func TestDelete(t *testing.T) {
|
||||
|
||||
for _, unit := range tests {
|
||||
var w bytes.Buffer
|
||||
unit.route += unit.files[0] + "/"
|
||||
unit.route += unit.files[0]
|
||||
Intercept(unit)
|
||||
Check(t, unit, &w, Delete(&w, conf, unit.files))
|
||||
Check(t, unit, &w, Delete(&w, conf, unit.files, common.TypeUpload))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user