cryptpad_ynh
cryptpad_ynh copied to clipboard
Testing
Problem
- no sandbox domain
Solution
- implement sandbox domain
PR Status
- [x] Code finished and ready to be reviewed/tested
- [x] 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)
!gogogadgetoci
!testme
!gogogadgetoci
!testme
!gogogadgetoci
!testme
I like this semi-automatic process :)
!testme
I actually restarted one previous job it in the meantime...:/
more tests more fun :p
I actually restarted one previous job it in the meantime...:/
Ah! I thought I had lost my mojo 😅
I trust you still have mojo.
I want this those tests to pass green...
Damn !!
What is this kind of error ?
6012 INFO [+++.................] > Installing Cryptpad Sandboxing App if needed... [00h00m,01s]
14551 WARNING Pick a valid value for argument 'domain': 'sandbox-sub.domain.tld' is not among the available choices (domain.tld, sub.domain.tld)
maybe the sandboxing app needs to be pass the tests first since this one install it, no ?
By the power of systemd, I invoke The Great App CI to test this Pull Request!
By the power of systemd, I invoke The Great App CI to test this Pull Request!
By the power of systemd, I invoke The Great App CI to test this Pull Request!
the issue seems to be that /var/www/$app
doesn't have group owner as www-data...I did add it in install script then forgot about it and so forgot to add it in restore / upgrade script. I thought that was quite standard and didnt think of having to do it manually...
I am testing to install it to my server, and it seems to not be able to creat the sandbox domain. Here is the logs: https://paste.yunohost.org/raw/inotimezoh
yes it is normal, I have changed method on limezy advice. Now it is on the admin to create both domain manually before install and also install correct LE certificate (the script check for that as for now).
I still have to update the readme to make it clear unless we/I go back to initial plan which was to have auto creation of the sandbox domain.... I kind of like the idea of having the sandbox created automatically during install but then LE certificate wont be anyway...
What do you think @ericgaspar ?
I was expecting to be asked during install to point out the sandboxing domain.
but yes, ideally if the process could be transparent it will be great.
By the power of systemd, I invoke The Great App CI to test this Pull Request!
By the power of systemd, I invoke The Great App CI to test this Pull Request!