No Code Attached Yet
avatar brianteeman
brianteeman
14 Apr 2023

I am getting multiple errors and I am assuming that it is partially down to my joomla installation and/or missing instructions

  1. Should I be running the tests on a CLEAN joomla install or can it be on ANY joomla install
  2. and then how can you run the installation test because joomla is already installed
  3. all of the API tests are failing with a 401 unauthorized on a CLEAN joomla install - is there a missing setup instructiion about this?
avatar brianteeman brianteeman - open - 14 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Apr 2023
avatar richard67
richard67 - comment - 14 Apr 2023

Regarding 3. I think you have to provide an API token in the settings of the super user. That could be already part of the regular backend documentation or elsewhere.

avatar sandewt
sandewt - comment - 14 Apr 2023

all of the API tests are failing with a 401 unauthorized

The api token is hardcoded in the api.js
File: \joomla\tests\System\support\commands\api.js

Generate your own token and paste it in. And it works. But that cannot be the intention. So I guess the api code is not finished yet.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40390.
avatar brianteeman
brianteeman - comment - 14 Apr 2023

how does you posting the instructions help when I already said the instructions are missing information

avatar sandewt
sandewt - comment - 14 Apr 2023

I'm trying to contribute here. Perhaps I should have indicated 'issue confirmed' better. ?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40390.

avatar brianteeman
brianteeman - comment - 14 Apr 2023

yes - thankyou

avatar richard67 richard67 - change - 16 Apr 2023
Status New Confirmed
avatar brianteeman
brianteeman - comment - 18 Apr 2023

@laoneo really appreciate your help here.

avatar laoneo
laoneo - comment - 18 Apr 2023
  1. Yes tests should always be executed on a clean Joomla.
  2. It is reccomended to run the installation test first, that's what we do with drone. But actually you can also run it in between.
  3. You have to set as secret tEstValue in the configuration.php, because the tokens for authentication are built with the secret. The installation test does that already for us.
avatar brianteeman
brianteeman - comment - 18 Apr 2023

So the instructions were indeed missing vital information - I will do an update

avatar brianteeman
brianteeman - comment - 18 Apr 2023

closed see #40407

avatar brianteeman brianteeman - change - 18 Apr 2023
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2023-04-18 13:10:58
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Apr 2023
avatar laoneo
laoneo - comment - 18 Apr 2023

On some point we have to migrate them to the manual, just didn't had time yet. I made that document basically for the GsoC students.

Add a Comment

Login with GitHub to post a comment