Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor smtp provider lib #27

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

arturo-seijas
Copy link
Collaborator

@arturo-seijas arturo-seijas commented Nov 29, 2023

Applicable spec: N/A

Overview

Refactor smtp provider lib

Rationale

Remove from the SmtpProvider an attribute that conceptually belongs to the charm itself

Juju Events Changes

N/A

Module Changes

charm.py adapted to the lib changes

Library Changes

Removed the SmtpProvider relation property

Checklist

@arturo-seijas arturo-seijas requested a review from a team as a code owner November 29, 2023 13:56
@arturo-seijas arturo-seijas mentioned this pull request Nov 29, 2023
6 tasks
Copy link

Test coverage for 0a6eee0

Name                                    Stmts   Miss Branch BrPart  Cover   Missing
-----------------------------------------------------------------------------------
lib/charms/smtp_integrator/v0/smtp.py     116      2     20      2    97%   319, 321
src/charm.py                               59      2     16      2    95%   87, 89
src/charm_state.py                         46      0      6      0   100%
-----------------------------------------------------------------------------------
TOTAL                                     221      4     42      4    97%

Static code analysis report

Run started:2023-11-29 14:04:31.553015

Test results:
  No issues identified.

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

@arturo-seijas arturo-seijas merged commit c638fa8 into main Nov 29, 2023
28 checks passed
@arturo-seijas arturo-seijas deleted the refactor-smtp-lib-provider branch November 29, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants