canonical / httprequest-lego-provider

httprequest-lego-provider - charm repository.
Apache License 2.0
0 stars 3 forks source link

Add actions to manage users and domains #40

Closed arturo-seijas closed 8 months ago

arturo-seijas commented 8 months ago

Applicable spec: https://docs.google.com/document/d/1J8LXOn8iQHC93OulsZB-PyL6c7iSjS_FPKZbZutPck0/edit

Overview

Add actions to manage users and domains

Rationale

Module Changes

charm.py actions.py management/commands/*

Checklist

github-actions[bot] commented 8 months ago

Test coverage for a400795deda0ca016f3582ac9ef15980edc52eeb

Name                                                              Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------------------------------------------------
httprequest_lego_provider/__init__.py                                 1      0      0      0   100%
httprequest_lego_provider/apps.py                                     5      0      0      0   100%
httprequest_lego_provider/dns.py                                     69      0      8      0   100%
httprequest_lego_provider/forms.py                                   22      0      2      0   100%
httprequest_lego_provider/management/__init__.py                      1      0      0      0   100%
httprequest_lego_provider/management/commands/__init__.py             1      0      0      0   100%
httprequest_lego_provider/management/commands/allow_domains.py       22      0      2      0   100%
httprequest_lego_provider/management/commands/create_user.py         14      0      0      0   100%
httprequest_lego_provider/management/commands/list_domains.py        16      0      2      0   100%
httprequest_lego_provider/management/commands/revoke_domains.py      22      0      2      0   100%
httprequest_lego_provider/migrations/0001_initial.py                  8      0      0      0   100%
httprequest_lego_provider/migrations/__init__.py                      0      0      0      0   100%
httprequest_lego_provider/models.py                                  10      0      0      0   100%
httprequest_lego_provider/serializers.py                             11      0      0      0   100%
httprequest_lego_provider/urls.py                                     8      0      0      0   100%
httprequest_lego_provider/views.py                                   49      0      8      0   100%
-------------------------------------------------------------------------------------------------------------
TOTAL                                                               259      0     24      0   100%

Static code analysis report

Run started:2024-03-05 09:34:29.089234

Test results:
    No issues identified.

Code scanned:
    Total lines of code: 1385
    Total lines skipped (#nosec): 0
    Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
    Total issues (by severity):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
    Total issues (by confidence):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
Files skipped (0):