Skip to content

Commit

Permalink
Added instructions for manual batch delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondap committed Jan 26, 2024
1 parent 76aef55 commit c086737
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions web/api/admin/intellectual_objects_batch_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ import (
"github.com/stretchr/testify/require"
)

// To test manually:
/*
curl -H "Content-Type: application/json" \
-H "X-Pharos-API-User: [email protected]" \
-H "X-Pharos-API-Key: password" \
-X POST \
-d '{"institutionId": 3, "requestorId": 5, "secretKey": "00000000-0000-0000-0000-000000000000", "objectIds": [5,6,12,13]}' \
http://localhost:8080/admin-api/v3/objects/init_batch_delete
* Then log in as [email protected]
* Click the alerts icon
* Click the "deletion request alert"
* Click the review link in that alert
* Approve the deletion on the review page (approval currently fails because objects have no ingest events)
*/

func TestObjectBatchDelete(t *testing.T) {
err := db.ForceFixtureReload()
require.Nil(t, err)
Expand Down

0 comments on commit c086737

Please sign in to comment.