Local Development and Testing
Testing before you go live
You can test your integration against a staging or development endpoint before connecting production:
- Point the integration at your staging endpoint. In the custom integration settings, enter your staging URLs for the operations you support and click Save.
- Send test events. Click Test Integration. MineOS sends a test request with
"isTest": trueto each configured endpoint (Delete, Copy and Preview); endpoints left empty are skipped. Any 2xx response counts as a pass. Your endpoint should skip real processing whenisTestistrue. - Run a full request. To test the whole flow, including your async status update, submit a privacy request for a test data subject in your workspace. Mine calls your staging endpoint with
"isTest": false, so use a test identity, not a real customer. To check your status-update call without changing anything, send it with"test": true: MineOS checks the ticket and integration IDs and returns 200 without updating the status. - Go live. Replace the staging URLs with your production URLs, click Save, and run Test Integration again.
Local development with ngrok
For local development and testing we recommend using a free tool called ngrok. ngrok allows you to tunnel HTTP requests from MineOS cloud to your local development machine, without worrying about any network configuration.
First, download ngrok by following the instructions for your operating system: https://download.ngrok.com/mac-os
Now start your code so the local endpoint is available and listening to incoming connections. In our example, our endpoint is listening on: http://127.0.0.1:8080/api/dsr-delete-endpoint
* Serving Flask app "app.py" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:8080/api/dsr-delete-endpoint (Press CTRL+C to quit)
Once your local endpoint has started, start ngrok with the required port:
ngrok http 8080The console output should show something similar to this:
ngrok
Version 3.3.0
Session Status online
Account [email protected] (Plan: Free)
Update update available (version 3.4.0, released 2024-12-12)
Version 3.3.0
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding https://abcdef123456.ngrok.io -> http://localhost:8080
Forwarding http://abcdef123456.ngrok.io -> http://localhost:8080
Connections
-----
No requests to display
Copy the https address under 'forwarding' and use it to configure MineOS Custom Integration.
Click 'Save'. You can now click 'Test integration' any time you want MineOS to send a test request to your endpoint.
Updated 4 days ago
