Skip to content

🔧 Regenerate access_token for OIDC client#751

Merged
danielmursa-dev merged 1 commit intomasterfrom
update/update-mozilla
Mar 24, 2026
Merged

🔧 Regenerate access_token for OIDC client#751
danielmursa-dev merged 1 commit intomasterfrom
update/update-mozilla

Conversation

@danielmursa-dev
Copy link
Contributor

Tests request a real access_token from Keycloak, and the token payload (including iat and exp) is stored in the VCR cassette.

When updating VCR cassettes, you must also update freeze_time so that it falls between iat and exp.

Example:

{
    "iat": 1774360215,  # "2026-03-24 13:50:15"
    "exp": 1774360515   # "2026-03-24 13:55:15"
}

For instance:
@freeze_time("2026-03-24 13:52:00")

The required condition is:
iat < freeze_time < exp

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.37%. Comparing base (2752231) to head (f3e2e59).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #751   +/-   ##
=======================================
  Coverage   86.37%   86.37%           
=======================================
  Files         145      145           
  Lines        3142     3142           
  Branches      253      253           
=======================================
  Hits         2714     2714           
  Misses        376      376           
  Partials       52       52           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

🐰 Bencher Report

Branchupdate/update-mozilla
Testbedubuntu-24.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
performance_test/tests/test_objects_list.py::test_objects_api_list_filter_by_object_type📈 view plot
🚷 view threshold
128.34 ms
(-0.88%)Baseline: 129.48 ms
135.95 ms
(94.40%)
performance_test/tests/test_objects_list.py::test_objects_api_list_filter_one_result📈 view plot
🚷 view threshold
19.29 ms
(-14.58%)Baseline: 22.58 ms
23.71 ms
(81.35%)
performance_test/tests/test_objects_list.py::test_objects_api_list_large_page_size_page_1📈 view plot
🚷 view threshold
329.88 ms
(-2.89%)Baseline: 339.70 ms
356.69 ms
(92.49%)
performance_test/tests/test_objects_list.py::test_objects_api_list_large_page_size_page_5📈 view plot
🚷 view threshold
326.82 ms
(-3.13%)Baseline: 337.38 ms
354.25 ms
(92.26%)
performance_test/tests/test_objects_list.py::test_objects_api_list_small_page_size_page_20📈 view plot
🚷 view threshold
126.88 ms
(-4.05%)Baseline: 132.23 ms
138.84 ms
(91.38%)
🐰 View full continuous benchmarking report in Bencher

@danielmursa-dev danielmursa-dev merged commit 7adf2f3 into master Mar 24, 2026
28 checks passed
@danielmursa-dev danielmursa-dev deleted the update/update-mozilla branch March 24, 2026 15:49
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.

3 participants