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

Add account validation module #138

Merged
merged 8 commits into from
Nov 4, 2024
Merged

Add account validation module #138

merged 8 commits into from
Nov 4, 2024

Conversation

a-leonardi
Copy link
Collaborator

@a-leonardi a-leonardi commented Oct 1, 2024

Added an AccountValidator class that can be registered when instaciating
a module in the same way as triggers or actions
This class handles the account validation process, calling an abstract
validator method that the user will have to fill in himself, and sending
the return value of validator to a Symphony callback endpoint

Parent task: #3

@a-leonardi a-leonardi self-assigned this Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

Test Results

219 tests  +4   218 ✅ +4   1m 41s ⏱️ -1s
  1 suites ±0     1 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 00aee03. ± Comparison against base commit dd0a508.

♻️ This comment has been updated with latest results.

@a-leonardi a-leonardi force-pushed the Add_module_validation branch 5 times, most recently from b87ab5c to b363657 Compare October 1, 2024 15:56
@a-leonardi a-leonardi changed the title Add module validation Add account validation module Oct 1, 2024
@a-leonardi a-leonardi marked this pull request as ready for review October 1, 2024 15:56
@a-leonardi a-leonardi requested a review from PierrickV October 1, 2024 15:57
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.73%. Comparing base (dd0a508) to head (00aee03).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   90.62%   90.73%   +0.10%     
==========================================
  Files          34       35       +1     
  Lines        2453     2482      +29     
==========================================
+ Hits         2223     2252      +29     
  Misses        230      230              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@a-leonardi a-leonardi force-pushed the Add_module_validation branch from b363657 to 45e8b01 Compare October 1, 2024 16:04
sekoia_automation/module.py Outdated Show resolved Hide resolved
sekoia_automation/account_validator.py Outdated Show resolved Hide resolved
sekoia_automation/account_validator.py Outdated Show resolved Hide resolved
sekoia_automation/account_validator.py Outdated Show resolved Hide resolved
sekoia_automation/account_validator.py Outdated Show resolved Hide resolved
@a-leonardi a-leonardi force-pushed the Add_module_validation branch from bab1bbe to a62517f Compare October 7, 2024 14:29
@Darkheir Darkheir force-pushed the Add_module_validation branch 2 times, most recently from 60bdbaa to 9cee138 Compare October 28, 2024 15:16
Darkheir
Darkheir previously approved these changes Oct 28, 2024
a-leonardi and others added 7 commits November 4, 2024 10:57
Added an AccountValidator class that can be registered when instaciating
a module in the same way as triggers or actions
This class handles the account validation process, calling an abstract
validator method that the user will have to fill in himself, and sending
the return value of validator to a Symphony callback endpoint
@Darkheir Darkheir force-pushed the Add_module_validation branch from 94a6993 to 00aee03 Compare November 4, 2024 10:00
@Darkheir Darkheir merged commit 87e1b2b into main Nov 4, 2024
9 checks passed
@Darkheir Darkheir deleted the Add_module_validation branch November 4, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants