Metadata-Version: 2.1
Name: csp-billing-adapter-test
Version: 0.0.1
Summary: Test plugin for CSP Billing Adapter
Home-page: https://github.com/SUSE-Enceladus/csp-billing-adapter-test
Author: SUSE
Author-email: public-cloud-dev@susecloud.net
License: Apache-2.0
Description: # CSP Billing Adapter Test Plugin
        
        This is a plugin for
        [csp-billing-adapter](https://github.com/SUSE-Enceladus/csp-billing-adapter)
        that provides CSP and get usage data hook implementations. This includes the
        hooks defined in the
        [csp_hookspecs.py module](https://github.com/SUSE-Enceladus/csp-billing-adapter/blob/main/csp_billing_adapter/csp_hookspecs.py).
        
        ## Meter billing
        
        The `meter_billing` function accepts a dictionary mapping of dimension name
        to usage quantity. This information is used to mock a metered bill. This
        function is mocked to fail 5% of the time.
        
        ## Get CSP Name
        
        The `get_csp_name` function returns a mocked name of *local*.
        
        ## Get Account Info
        
        The `get_account_info` function provides mocked metadata information.
        The structure of this information is as follows:
        
        ```
        {
            "account_id": "123456789",
            "arch": "x86_64",
            "cloud_provider": "local"
        }
        ```
        
        ## Get Usage Data
        
        The `get_usage_data` function returns a usage dictionary with a random
        usage count for the usage value `managed_node_count`.
        
        There are 6 possible weighted usage values that can be returned. The
        format of the return dictionary is as follows:
        
        ```
        {
            "managed_node_count": 25,
            "reporting_time": "2023-03-10T20:50:00.000000+00:00",
            "base_product": "cpe:/o:suse:product:v1.2.3"
        }
        ```
        
Keywords: csp-billing-adapter-test csp_billing_adapter_test
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: System :: Monitoring
Classifier: License :: OSI Approved :: Apache License 2.0
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: test
