-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added instructions for manual batch delete test
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|