canonical / discourse-k8s-operator

discourse-k8s-operator - charm repository.
Apache License 2.0
7 stars 5 forks source link

enable plugins in integration tests #230

Closed Thanhphan1147 closed 6 months ago

Thanhphan1147 commented 6 months ago

Enable all plugins when running integration tests using the rake site_settings:import task

echo '{settings}' | /srv/discourse/app/bin/bundle exec rake site_settings:import -

Overview

Rationale

Juju Events Changes

Module Changes

Library Changes

Checklist

github-actions[bot] commented 6 months ago

Test coverage for 5ac1ec14168770be980199a3c2aa7bcbb2b978cc

Name              Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------
src/charm.py        321     27     78     12    90%   186, 194-195, 207, 335->343, 376->381, 393, 581-583, 588-589, 601-603, 608-609, 621-623, 646-648, 690->exit, 700->exit, 730-736, 762->exit, 776-777, 787->exit, 801
src/database.py      30      1      8      1    95%   56
-------------------------------------------------------------
TOTAL               351     28     86     13    91%

Static code analysis report

Run started:2024-04-25 07:49:10.110292

Test results:
    No issues identified.

Code scanned:
    Total lines of code: 1984
    Total lines skipped (#nosec): 3
    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):