Skip to content

[5.3][cypress] Use generated API bearer token#45796

Merged
laoneo merged 2 commits intojoomla:5.3-devfrom
heelc29:5.3/system-tests/api-token
Jul 29, 2025
Merged

[5.3][cypress] Use generated API bearer token#45796
laoneo merged 2 commits intojoomla:5.3-devfrom
heelc29:5.3/system-tests/api-token

Conversation

@heelc29
Copy link
Contributor

@heelc29 heelc29 commented Jul 27, 2025

Summary of Changes

Get generated API bearer token from backend instead of fixed value (needs manipulated secret) for systemtests

tests sometimes fails due duplicated key for api user
> ER_DUP_ENTRY: Duplicate entry '3' for key 'PRIMARY'
https://github.com/joomla/joomla-cms/actions/runs/16449121867/job/46489472330
https://github.com/joomla/joomla-cms/actions/runs/16483703457/job/46604072452
> Postgres query failed: duplicate key value violates unique constraint "cpostgresmax_users_pkey" https://github.com/joomla/joomla-cms/actions/runs/16450618807/job/46494785677
https://github.com/joomla/joomla-cms/actions/runs/16542404641/job/46785435525
https://github.com/joomla/joomla-cms/actions/runs/16474850085/job/46573698007
image

Testing Instructions

api tests should work (without manipulated secret)

Actual result BEFORE applying this Pull Request

secret must be manipulated
tests could fail due fix user id for api user

Expected result AFTER applying this Pull Request

Secret does not need to be adjusted
No user with fixed user id does not need to be created (no possibility for tests failing)

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

@laoneo laoneo added this to the Joomla! 5.3.3 milestone Jul 29, 2025
@laoneo laoneo merged commit 96697bf into joomla:5.3-dev Jul 29, 2025
39 checks passed
@laoneo
Copy link
Member

laoneo commented Jul 29, 2025

Thanks!

@heelc29 heelc29 deleted the 5.3/system-tests/api-token branch July 29, 2025 15:39
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

Comments