Content service for Insights rules groups, tags, and content.
- Description
- Documentation
- Usage
- Makefile targets
- BDD tests
- Definition of Done for new features and fixes
- Contribution
- Package manifest
Insights Content Service is a service that provides metadata information about rules that are being consumed by Openshift Cluster Manager. That metadata information contains rule title, description, remmediations, tags and also groups, that will be consumed primarily by Insights Results Smart Proxy.
Documentation is hosted on Github Pages https://redhatinsights.github.io/insights-content-service/. Sources are located in docs.
Usage:
./insights-content-service [command]
The commands are:
<EMPTY> starts content service
start-service starts content service
help prints help
print-help prints help
print-config prints current configuration set by files & env variables
print-groups prints current groups configuration
print-rules prints current parsed rules
print-parse-status prints information about all rules that have been parsed
print-version-info prints version info
clean Run go clean
build Build binary containing service executable
build-cover Build binary with code coverage detection support
fmt Run go fmt -w for all sources
lint Run golint
vet Run go vet. Report likely mistakes in source code
cyclo Run gocyclo
ineffassign Run ineffassign checker
shellcheck Run shellcheck
errcheck Run errcheck
goconst Run goconst checker
gosec Run gosec checker
abcgo Run ABC metrics checker
json-check Check all JSONs for basic syntax
style Run all the formatting related commands (fmt, vet, lint, cyclo) + check shell scripts
run Build the project and executes the binary
test Run the unit tests
cover Generate HTML pages with code coverage
coverage Display code coverage on terminal
integration_tests Run all integration tests
help Show this help screen
function_list List all functions in generated binary file
Behaviour tests for this service are included in Insights Behavioral Spec repository. In order to run these tests, the following steps need to be made:
- Build this service using
./build.sh --test-rules-only
- clone the Insights Behavioral Spec repository
- copy this directory with the
insights-content-service
executable into theinsights-behavioral-spec
subdirectory - run the
insights_content_service_test.sh
from theinsights-behavioral-spec
subdirectory
List of all test scenarios prepared for this service is available at https://redhatinsights.github.io/insights-behavioral-spec/feature_list.html#insights-content-service
Please look at DoD.md document for definition of done for new features and fixes.
Please look into document CONTRIBUTING.md that contains all information about how to contribute to this project.
Package manifest is available at docs/manifest.txt.