[6] Kritische Tests: Auth-Sicherheit #14

Merged
hobbypunk merged 6 commits from enhancement/6_critical_tests into main 2026-09-26 17:58:41 +00:00
Owner

closed #6

closed #6
refactor(controllers): improve authorization, session handling, and error handling across multiple controllers
All checks were successful
CI / scan_ruby (pull_request) Successful in 1m33s
CI / lint (pull_request) Successful in 1m34s
CI / system-test (pull_request) Successful in 1m50s
CI / test (pull_request) Successful in 1m51s
CI / coverage (pull_request) Successful in 27s
000042f48a
feat(test): add comprehensive test coverage for authentication controllers

feat(test): add WebAuthn passkey and TOTP authentication integration tests

---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>

📊 Coverage

Metrik Abdeckung
Zeilen 94.03% (2518/2678)
Branches 71.79% (560/780)
Methoden 92.71% (394/425)

Patch-Coverage: 100.0% (16/16 geänderte Zeilen)

Geänderte Dateien (schwach zuerst)

Datei Patch-Coverage Fehlende Zeilen
app/controllers/concerns/proxy_authentication.rb 100.0% (4/4)
app/controllers/sessions/otps_controller.rb 100.0% (3/3)
app/policies/user_policy.rb 100.0% (3/3)
app/controllers/email_verifications_controller.rb 100.0% (1/1)
app/controllers/oauth_sessions_controller.rb 100.0% (1/1)
app/controllers/registrations_controller.rb 100.0% (1/1)
app/controllers/sessions/passkeys_controller.rb 100.0% (1/1)
app/models/concerns/translatable/hint.rb 100.0% (1/1)
app/models/social_accounts.rb 100.0% (1/1)

Schwächste Dateien im Projekt

Datei Abdeckung
app/components/form/checkbox.rb 28.57%
app/components/form/text_area.rb 33.33%
app/controllers/settings_controller.rb 33.33%
app/views/admin/activities/index.rb 42.59%
app/models/concerns/has_uuid_v7.rb 54.55%
app/components/form/select.rb 72.41%
app/controllers/sessions_controller.rb 77.42%
app/components/pagination.rb 77.78%
app/components/concerns/inferrable.rb 78.13%
app/components/dropdown.rb 79.31%

🔍 Report im Browser ansehen · 📄 Run-Artifact „coverage-report“

<!-- coverage-report --> ## 📊 Coverage | Metrik | Abdeckung | |---|---| | Zeilen | 94.03% (2518/2678) | | Branches | 71.79% (560/780) | | Methoden | 92.71% (394/425) | **Patch-Coverage**: 100.0% (16/16 geänderte Zeilen) **Geänderte Dateien (schwach zuerst)** | Datei | Patch-Coverage | Fehlende Zeilen | |---|---|---| | app/controllers/concerns/proxy_authentication.rb | 100.0% (4/4) | | | app/controllers/sessions/otps_controller.rb | 100.0% (3/3) | | | app/policies/user_policy.rb | 100.0% (3/3) | | | app/controllers/email_verifications_controller.rb | 100.0% (1/1) | | | app/controllers/oauth_sessions_controller.rb | 100.0% (1/1) | | | app/controllers/registrations_controller.rb | 100.0% (1/1) | | | app/controllers/sessions/passkeys_controller.rb | 100.0% (1/1) | | | app/models/concerns/translatable/hint.rb | 100.0% (1/1) | | | app/models/social_accounts.rb | 100.0% (1/1) | | **Schwächste Dateien im Projekt** | Datei | Abdeckung | |---|---| | app/components/form/checkbox.rb | 28.57% | | app/components/form/text_area.rb | 33.33% | | app/controllers/settings_controller.rb | 33.33% | | app/views/admin/activities/index.rb | 42.59% | | app/models/concerns/has_uuid_v7.rb | 54.55% | | app/components/form/select.rb | 72.41% | | app/controllers/sessions_controller.rb | 77.42% | | app/components/pagination.rb | 77.78% | | app/components/concerns/inferrable.rb | 78.13% | | app/components/dropdown.rb | 79.31% | [🔍 Report im Browser ansehen](https://pages.hoppe-dev.eu/hobbypunk/rails-base_app/pr-14/coverage) · [📄 Run-Artifact „coverage-report“](https://code.hoppe-dev.eu/hobbypunk/rails-base_app/actions/runs/1469/artifacts/coverage-report)
refactor(models): fix delegation and social account URL generation while adding datetime flag and user agent tests
Some checks failed
CI / lint (pull_request) Successful in 32s
CI / scan_ruby (pull_request) Successful in 33s
CI / test (pull_request) Failing after 39s
CI / system-test (pull_request) Successful in 44s
CI / coverage (pull_request) Has been skipped
8fad7e9cb8
test: add comprehensive test coverage for model concerns and session behavior

test: add unit tests for social accounts, array validator, password complexity validator and URL validator

---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>
test: fix parallel test race conditions in i18n and geocoder mocking
All checks were successful
CI / scan_ruby (pull_request) Successful in 33s
CI / lint (pull_request) Successful in 34s
CI / system-test (pull_request) Successful in 46s
CI / test (pull_request) Successful in 47s
CI / coverage (pull_request) Successful in 27s
093b39b46c
test(mailers): add tests for OnboardingMailer and PasswordsMailer to verify email content and routing
All checks were successful
CI / lint (pull_request) Successful in 30s
CI / scan_ruby (pull_request) Successful in 31s
CI / system-test (pull_request) Successful in 47s
CI / test (pull_request) Successful in 48s
CI / coverage (pull_request) Successful in 26s
457a43ab6d
---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>
feat(components): add comprehensive test coverage for UI components including badges, cards, forms, links, stats, tabs, and tooltips
All checks were successful
CI / scan_ruby (pull_request) Successful in 36s
CI / lint (pull_request) Successful in 37s
CI / test (pull_request) Successful in 56s
CI / system-test (pull_request) Successful in 1m14s
CI / coverage (pull_request) Successful in 28s
80cf84c41b
test: add comprehensive test coverage for admin, authentication, and user features

---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>
refactor(policies): improve user policy checks and add new policy tests for admin and security features
All checks were successful
CI / scan_ruby (pull_request) Successful in 30s
CI / lint (pull_request) Successful in 31s
CI / system-test (pull_request) Successful in 46s
CI / test (pull_request) Successful in 48s
CI / coverage (pull_request) Successful in 28s
817ffcca82
test(policies): add comprehensive policy tests for session, settings, system and user policies

---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>
hobbypunk deleted branch enhancement/6_critical_tests 2026-09-26 17:58:41 +00:00
Sign in to join this conversation.
No reviewers
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hobbypunk/rails-base_app!14
No description provided.