No description
  • Python 99.1%
  • Dockerfile 0.9%
Find a file
Benjamin Dudas 49689426d9
AAP-43467: Ignore ansible_host when dict (#23)
* AAP-43467 ignore ansible_host when dict

* only use ansible_host when string

* silence false possitive F824

* Change test setup order

---------

Co-authored-by: Bryan Havenstein <bhavenst@redhat.com>
2025-04-15 16:56:42 -04:00
.github/workflows Remove old sonarcloud config (#18) 2024-07-25 07:50:58 -07:00
aap_billing AAP-43467: Ignore ansible_host when dict (#23) 2025-04-15 16:56:42 -04:00
.gitignore Readme and a bit more cleanup for open sourcing 2023-01-31 15:41:33 -07:00
bindep.txt Add missing requirements for container builds 2021-12-20 12:56:26 -05:00
DCO_1_1.md Add DCO to billing repo 2023-01-26 11:06:48 -08:00
Dockerfile Bootstrap a Dockerfile 2021-11-17 13:27:03 -05:00
LICENSE AAP-8934 Update readme and other small items (#2) 2023-02-04 10:30:01 -06:00
README.md Remove old sonarcloud config (#18) 2024-07-25 07:50:58 -07:00
requirements.txt fix: requirements.txt to reduce vulnerabilities (#21) 2024-10-22 07:20:25 -07:00
setup.cfg Remove warning for audit, add audit command line (#11) 2024-01-24 14:58:18 -07:00
setup.py Reformat code via black 2021-12-20 12:23:39 -05:00
sonar-project.properties Remove old sonarcloud config (#18) 2024-07-25 07:50:58 -07:00
test-requirements.txt Enable azure pipeline jobs, github actions, and sonarqube in main branch (#44) 2022-04-11 13:22:05 -04:00
tox.ini Readme and a bit more cleanup for open sourcing 2023-01-31 15:41:33 -07:00

Ansible Automation Platform Billing

Captures automation usage for reporting to hyperscaler metering systems.

This module uses the Django framework (ORM) and requires a PostgreSQL database of its own as well as read access to the Ansible Automation Platform controller database.

Currently supporting Azure and AWS.

Development Team

This component is primarily developed by the Ansible Automation Platform on Azure team in Red Hat.

Github Issues can be used to file tickets for help, bugs, vulnerabilities or other security issues.

Contributions and suggestions are welcome! Please see below for getting started.

Getting Started

To get started developing against ansible-automation-platform-billing first clone a local copy of the git repository::

git clone https://github.com/ansible/ansible-automation-platform-billing.git

Change directories to the local repository::

cd ansible-automation-platform-billing

Install tox if not already present::

pip install tox

Create and activate a virtual environement for development::

tox -e linters (or unittest or coverage)
source .env/bin/activate

Linting

Run the linting (black, flake8, and shellcheck) via tox::

tox -e linters

Testing

Run the unit tests via tox::

tox -e unittest

Unit Test Coverage

Generate a coverage report via tox::

tox -e coverage

SonarQube

Sonar analysis is performed by Github Actions on the code repository for this project. Results available at sonarcloud.io