- Description
- Messages to be consumed by Insights Results Writer service
- Normal messages with expected format and content
- Normal messages with expected format but with missing version info
- Normal messages with expected format but with wrong version info
- Normal messages with content to be used by CCX Notification Writer
- Messages with unexpected format and/or content
- Messages with invalid format - missing account number
- Messages with invalid format - missing cluster name
- Messages with invalid format - missing last checked timestamp
- Messages with invalid format - missing organization ID
- Messages with invalid format - missing version info
- Messages with invalid format - missing report
- Test data
- Reports generated by Insights Reports Aggregator
Data shared by insights-results-* microservices that can be used for mocking and testing.
Three types of data are stored in this repository:
- Messages to be consumed by Insights Results Writer and CCX Notification Writer services
- Cluster reports as produced by the Smart Proxy via its REST API interface
- Test data in format of Go structures to be used in all form of tests (unit tests, integration tests...)
Data (messages) to be consumed by Insights Results Writer service (it's
source code is shared with Insights Results Aggregator service) through
Kafka broker. These data are stored in messages
subdirectory and are
splitted into various sub-directories.
The mentioned tools are available at https://github.com/RedHatInsights/insights-results-aggregator-utils/blob/master/input/produce.sh and https://github.com/RedHatInsights/insights-results-aggregator-utils/blob/master/input/produce_50k_messages.sh
Several types of messages are prepared there. There are splitted into groups. Each group is stored in its own subdirectory:
normal
normal_no_version
normal_wrong_version
normal_for_notification_tests
broken
invalid
invalid_no_account_number
invalid_no_cluster_name
invalid_no_last_checked
invalid_no_organization_id
invalid_no_report
invalid_no_version
invalid_string_version
invalid_wrong_cluster_name
invalid_wrong_last_checked
invalid_wrong_org_id
invalid_wrong_report
results_no_tutorial
results_tutorial
Insights Results Writer service should be able to consume and process these messages, because their format and content are correct.
These messages are stored in messages/normal
subdirectory.
Please look into this document for detailed description.
Insights Results Writer service should be able to consume these messages as
they have correct format. But the version
attribute is missing, so these
messages should be rejected after consumption.
These messages are stored in messages/normal_no_version
subdirectory.
Please look into this document for detailed description.
Insights Results Writer service should be able to consume these messages as
they have correct format. But the version
attribute is set to unexpected (too
high) value, so these messages should be rejected after consumption.
These messages are stored in messages/normal_wrong_version
subdirectory.
Please look into this document for detailed description.
These are messages with expected format and content. The content (basically set of rules) is prepared to be used by CCX Notification Writer and later by CCX Notification Service.
These messages are stored in messages/normal_for_notification_tests/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX Notification Writer services as their format is unexpected or wrong at all. OTOH such data are very valuable for testing etc.
These messages are stored in messages/broken/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX
Notification Writer services as the account_number
attribute is missing.
These messages are stored in messages/invalid_no_account_number/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX
Notification Writer services as the cluster_name
attribute is missing.
These messages are stored in messages/invalid_no_cluster_name/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX
Notification Writer services as the last_checked
attribute is missing.
These messages are stored in messages/invalid_no_last_checked/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX
Notification Writer services as the org_id
attribute is missing.
These messages are stored in messages/invalid_no_organization_id/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX
Notification Writer services as the version
attribute is missing.
These messages are stored in messages/invalid_no_version/
subdirectory.
Please look into this document for detailed description.
These messages should be rejected by Insights Results Writer and also by CCX Notification Writer services as the whole report is missing (just other attributes are there).
These messages are stored in messages/invalid_no_report/
subdirectory.
Please look into this document for detailed description.
github.com/RedHatInsights/insights-results-aggregator-data/testdata
package contains files with repeated data
to be used in tests
Reports are stored in reports
directory. It is splitted into three subdirectories:
original
contains reports as read from Insights Reports Aggregatorformatted
contains reports as formatted JSON files (for better readability)edn
contains reports converted into EDN format
34c3ecc5-624a-49a5-bab8-4fdc5e51a266
74ae54aa-6577-4e80-85e7-697cb646ff37
a7467445-8d6a-43cc-b82c-7007664bdf69
ee7d2bf4-8933-4a3a-8634-3328fe806e08
eeeeeeee-eeee-eeee-eeee-000000000001