Skip to content

Tests: fix by using another package and only request the container#66

Merged
alexAubin merged 1 commit intoYunoHost-Apps:testingfrom
fflorent:fix-tests
Sep 22, 2025
Merged

Tests: fix by using another package and only request the container#66
alexAubin merged 1 commit intoYunoHost-Apps:testingfrom
fflorent:fix-tests

Conversation

@fflorent
Copy link
Copy Markdown
Contributor

Problem

Fixes #65

Solution

Prerequisite: This patch requires YunoHost/package_check#201

I feel like requesting the package requires the access to the internet for convenient reason, but due to this commit YunoHost/package_check@f120010, it is not the case anymore. Also it requires some tweaks on the yunohost.org server side.

I suggest to install the dummier package possible that serves static files, I have chosen for that helloworld_ynh to let the tests have a final destination.

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable)

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

@alexAubin
Copy link
Copy Markdown
Member

By the power of systemd, I invoke The Great App CI to test this Pull Request!

@yunohost-bot
Copy link
Copy Markdown
Contributor

Test it, book it, worm it, technologic. 🤖 🎶
Test Badge

Comment thread tests.toml
# }
# location = /path__2 {
# return 200 "This is /path__2 for redirect_ynh CI purposes!";
# }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to the reviewers: probably worth to remove this in yunohost.org's nginx config

Comment thread tests.toml

preinstall = """
yunohost domain add target.domain.tld
yunohost app install https://github.com/YunoHost-Apps/helloworld_ynh -a "domain=target.domain.tld&path=/&init_main_permission=visitors" --force
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if it is tricky, I find helloworld_ynh convenient to avoid creating a whole nginx config + create all the index files.

@fflorent
Copy link
Copy Markdown
Contributor Author

@alexAubin Sounds it works!

@fflorent fflorent changed the base branch from master to testing September 21, 2025 14:37
@fflorent
Copy link
Copy Markdown
Contributor Author

!testme

@yunohost-bot
Copy link
Copy Markdown
Contributor

Test it, book it, worm it, technologic. 🤖 🎶
Test Badge

@fflorent
Copy link
Copy Markdown
Contributor Author

(@alexAubin I don't have the rights to merge by myself, if you would like to either grant me this right or to do that yourself! 🙏 )

@alexAubin alexAubin merged commit cb2517a into YunoHost-Apps:testing Sep 22, 2025
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.

App is flagged as broken on the store, why ?

3 participants