Create system tests for collect anonymous usage statistics feature
In the next release we have new feature “Sending usage statistics” in Fuel: https:/
We should create automatic system tests for that feature which can be executed on CI in daily basis.
Test integration plan:
- we should add additional environment variables in tests settings which will be used for enabling of stats collecting/sending and defining collector IP address;
- add methods which enable/disable collecting of statistics in tests and can force sending of data to collector;
- add separate test (or maybe decorator) which can use environment snapshots created by other tests (or last created environment), checks that appropriate common logs (cluster creation/
- check stat sending with enabled/disabled setting
- check saved content in the Nailgun DB action_logs. saved content should not contain any passwords, ips, netmasks, emails, tenants, session ids
- check sending statistics into collector:
- send action logs of all types
- check only not sent before action logs are sent
- send installation structure in ha and multinode modes
- check data in the collector DB:
- check no passwords, ips, netmasks, emails, tenants, session ids in action_logs, installation_
- check migration from collector DB into Elasticsearch
- check modified installation structs migration
- check only new action_logs migration
Blueprint information
- Status:
- Complete
- Approver:
- Nastya Urlapova
- Priority:
- Undefined
- Drafter:
- Alexander Kislitsky
- Direction:
- Needs approval
- Assignee:
- Artem Panchenko
- Definition:
- Approved
- Series goal:
- Accepted for 6.0.x
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- Nastya Urlapova
- Completed by
- Artem Panchenko
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Enable Fuel stats sending to test collector
Addressed by: https:/
Add decorator to check Fuel statistics sending
Addressed by: https:/
WIP Check stats collecting after tests
Addressed by: https:/
Add var to tests which enables stats checking
Addressed by: https:/
Fix regex for checking private data in statistics
Addressed by: https:/
Enable Fuel stats sending to test collector
Addressed by: https:/
Add decorator to check Fuel statistics sending
Addressed by: https:/
Check stats collecting after tests
Addressed by: https:/
Add var to tests which enables stats checking
Addressed by: https:/
Fix regex for checking private data in statistics
Addressed by: https:/
Send usage statistics to test Collector (default)
Addressed by: https:/
Send usage statistics to test Collector (default)
Addressed by: https:/
Restart 'statsenderd' after changing Collector IP
Addressed by: https:/
Restart 'statsenderd' after changing Collector IP
Addressed by: https:/
Restart 'statsenderd' after changing Collector IP