-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Enhance the automated tests for Astarte tools by adding a test case to validate data export by device_id:
- Add two devices to the test database.
- Ensure that the export retrieves data for only one device based on the specified device_id.
- Verify the validity of the exported data.
Environment Setup
To run the test, ensure the following environment variables are set:
export CASSANDRA_DB_HOST="127.0.0.1"
export CASSANDRA_DB_PORT=9042
export CASSANDRA_NODES="localhost:9042"
Additionally, ensure the Scylla database is running and port 9042 is exposed.
To Reproduce
- Insert two devices into the test database.
- Run the export functionality with a specific device_id.
- Check the exported data to ensure it matches the device_id criteria.
- Validate the integrity and accuracy of the exported data.
Tasks
- Add two devices to the test database.
- Implement a test case to export data for a single device_id.
- Validate that the export retrieves data for only the specified device_id.
- Verify the validity and accuracy of the exported data.
- Ensure that all existing tests pass after the changes.
Metadata
Metadata
Assignees
Labels
No labels