7515 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
4e5835f92a
wordpress: tests: Fix writing title for new post in newer versions
Newer versions of wordpress after Bullseye seem to have a different HTML
structure for the title element. Make the functional tests work for the new
structure as well as the old one.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 12:17:25 -07:00
James Valleroy
90cef6e95c
wordpress: tests: Continue past language selection screen
Tests: Functional tests for wordpress pass on stable container.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Make language selection presence optional]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 11:16:47 -07:00
Joseph Nuthalapati
629ca17ac2
tests: functional: Add jobs for bullseye-backports
- Added an additional build job called 'build-backports'
- Added a separate stage for functional tests in order to avoid
  depending on multiple jobs
- Improved readability of long commands in YAML files
- Depending on GitLab username 'weblate' instead of a RE2 regexp (untested)
- Increased job timeout to 2h 30m

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 10:21:00 -07:00
Nikita Epifanov
de292d0dcd
Translated using Weblate (Russian)
Currently translated at 99.6% (1432 of 1437 strings)
2022-06-03 22:18:04 +02:00
Kolja Gorter
561ba00f18
Add function to change root chanel name of mumble server
Show the current name of the root channel

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[james: Use augeas for config file operations]
[james: Pass channel name on command line]
[james: Add functional test for change root channel name]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-03 10:03:51 -04:00
Sunil Mohan Adapa
411f42edb2
wordpress: Allow installing/updating plugins and themes
Based on work by Benedek Nagy at:
https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2198

Tests:

- Install WordPress without this patch. Then switch to code with this patch.
Restart FreedomBox. WordPress setup should get executed and the setup version
should get incremented to 2. The configuration file should contain the include
line for freedombox-static.php. freedombox-static.php should be installed and
should contain the line for setting FS_METHOD to 'direct'.

- Uninstall WordPress and wipe everything. Install WordPress freshly using this
patch. The line to include freedombox-static.php should be present in the
default configuration file. freedombox-static.php should be installed and should
contain the line for setting FS_METHOD to 'direct'.

- Installing a new theme using a URL and setting the default theme to the new
theme should work.

- Installing a plugin and enabling it should work.

- Installing an older version of a plugin and then updating it should work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-01 10:26:56 -04:00
Jiří Podhorecký
25cab067d7
Translated using Weblate (Czech)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-31 16:18:52 +02:00
109247019824
3ebc740945
Translated using Weblate (Bulgarian)
Currently translated at 17.5% (252 of 1437 strings)
2022-05-29 16:14:36 +02:00
Michael Breidenbach
ac3b9e1cb1
Translated using Weblate (Swedish)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-27 19:17:01 +02:00
Joseph Nuthalapati
f86ed032a3
tests: functional: Integrate into Salsa CI
Functional tests are run in parallel on Debian testing and Debian
unstable using the latest freedombox package built in the pipeline.

Commits by Weblate are ignored.

Fixes freedombox-team/infrastructure#34
Closes freedombox-team/infrastructure!48

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-26 12:28:17 -07:00
Benedek Nagy
b6d3e21608
transmission: Add redirects to avoid 409 conflict
Tests:

- Inside container, run 'curl http://localhost/transmission/' and 'curl
http://localhost/transmission/web'. Notice that '409 Conflict' errors are
thrown.

- Apply the patch, run ./setup.py install and restart apache. Run the curl
commands again and this time, they lead to 302 redirects instead.

[sunil]: Update comment and make the redirect temporary.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-25 15:46:55 -07:00
109247019824
b4271069a1
Translated using Weblate (Bulgarian)
Currently translated at 17.4% (251 of 1437 strings)
2022-05-24 17:49:13 +02:00
Eric
b15bf30070
Translated using Weblate (Chinese (Simplified))
Currently translated at 70.1% (1008 of 1437 strings)
2022-05-24 17:49:13 +02:00
Burak Yavuz
ed53cefd66
Translated using Weblate (Turkish)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:12 +02:00
ikmaak
cf79325a05
Translated using Weblate (Dutch)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:12 +02:00
ikmaak
4180b51054
Translated using Weblate (German)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:11 +02:00
D āvis
8875b3ecab
Added translation using Weblate (Latvian) 2022-05-24 17:48:59 +02:00
James Valleroy
0aead35ea8
Release v22.12 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.12
2022-05-23 20:48:48 -04:00
James Valleroy
dd6c424217
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 20:47:46 -04:00
James Valleroy
530dd01639
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 20:27:23 -04:00
Jiří Podhorecký
ec9a5caac5
Translated using Weblate (Czech)
Currently translated at 100.0% (1441 of 1441 strings)
2022-05-24 02:21:11 +02:00
Sunil Mohan Adapa
52d55efe35
tor: Show port forwarding information in consistent way
Closes: #2187

Tests:

- Visit the Tor app page after installing. Port forwarding information is
shown like in all other apps. Protocol column lists 'TCP'.

- Information about SOCKS port is shown in the description.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 19:47:15 -04:00
Sunil Mohan Adapa
ca13b7bd93
firewall: Show service name in port forwarding info table
- Also add CSS class for the table to aide functional tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 19:47:11 -04:00
Sunil Mohan Adapa
74a6042ed8
*: Show Learn More... links in frontpage with description
Closes: #1797.

Tests:

- For each affected app, install the app, visit frontpage. Select the shortcut.
Notice that Learn More... link is shown and clicking on the link takes us to the
manual page of the app.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-22 05:44:22 -04:00
Sunil Mohan Adapa
f4c3b4326c
frontpage: Allow showing links to manual pages
Tests:

- Run updated unit tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-22 05:44:20 -04:00
Sunil Mohan Adapa
bf86990382
frontpage: Reuse app header template for showing app description
- Show the short description under the app name.

- Show the link to manual page if available.

- Share the header styling with the app page.

Tests:

- Install OpenVPN app and visit the home page. Select the OpenVPN icon. Along
with app title and description, short description is now shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-22 05:44:16 -04:00
Sunil Mohan Adapa
48457dd0d0
mediawiki: Fix URL diagnostics with redirects involved
Upon access of MediaWiki URL, it redirects to the main page with the URL
configured. This new URL could only be accessed on IPv4 or IPv6 only. When curl
is invoked with the IP address version of a different kind, this fails. Tell the
diagnostics methods not the restrict to a particular address type.

Tests:

- All MediaWiki diagnostic tests pass. URL tests show that they haven't been
performed on particular address type but rather generically.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-21 19:55:18 -04:00
Sunil Mohan Adapa
436060fecb
apache: Allow URL diagnostics to work with redirects
Upon access of an app URL, it may redirect to another URL that is configured in
app settings. This new URL could only be accessed on IPv4 or IPv6 only. When
curl is invoked with the IP address version of a different kind, the access
fails. In such cases, tell the diagnostics methods not the restrict to a
particular address type.

Tests:

- Unit tests pass.

- All of transmission's diagnostics tests pass. The URL tests show that they
have been performed on a particular IP address type.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-21 19:55:05 -04:00
Petter Reinholdtsen
02fa1dc3c1
Translated using Weblate (Norwegian Bokmål)
Currently translated at 80.6% (1162 of 1441 strings)
2022-05-16 16:14:53 +02:00
Asle Næss
7757e75e8a
Translated using Weblate (Norwegian Bokmål)
Currently translated at 80.5% (1161 of 1441 strings)
2022-05-15 16:13:52 +02:00
Asle Næss
f20e00f55a
Translated using Weblate (Norwegian Bokmål)
Currently translated at 80.2% (1157 of 1441 strings)
2022-05-15 12:15:54 +02:00
Benedek Nagy
5da1ebf00c
ssh, bind: Show 'Learn More...' links
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-11 10:11:58 -07:00
109247019824
af1f45690a
Translated using Weblate (Bulgarian)
Currently translated at 16.2% (234 of 1441 strings)
2022-05-11 18:16:38 +02:00
Eric
1c5de7fab0
Translated using Weblate (Chinese (Simplified))
Currently translated at 70.2% (1012 of 1441 strings)
2022-05-11 18:16:37 +02:00
Burak Yavuz
45f346d8b7
Translated using Weblate (Turkish)
Currently translated at 100.0% (1441 of 1441 strings)
2022-05-11 18:16:37 +02:00
ikmaak
1aeb99953c
Translated using Weblate (Dutch)
Currently translated at 100.0% (1441 of 1441 strings)
2022-05-11 18:16:36 +02:00
John Doe
7b47fb3157
Translated using Weblate (French)
Currently translated at 100.0% (1441 of 1441 strings)
2022-05-11 18:16:36 +02:00
ikmaak
7531870e45
Translated using Weblate (German)
Currently translated at 100.0% (1441 of 1441 strings)
2022-05-11 18:16:35 +02:00
Benedek Nagy
10fb0cae74
tt-rss: Fix description about user access
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-10 14:02:51 -07:00
Benedek Nagy
1dcfa06dd8
mediawiki: Serve hidden service over http for .onion domains
[sunil: rename the form field variable]
[sunil: rename the parater to get/set_server_url functions]
[sunil: remove unused PrependWidget, can be added back later]
[sunil: update functional tests]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-10 12:43:43 -07:00
Benedek Nagy
b3d5d68448
mediawiki: Add stricter sandbox rules for jobrunner service
Tests:

- Run ./setup.py install and check that 'systemctl daemon-reload; systemctl show
mediawiki-jobrunner.service' shows the required sandbox changes.

- Tested a few MediaWiki jobs. See:
https://salsa.debian.org/freedombox-team/freedombox/-/issues/299#note_306788

[sunil: Relax the restrictions on read/write paths and networking]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-10 11:07:08 -07:00
James Valleroy
b8ea881938
Release v22.11 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.11
2022-05-09 22:36:23 -04:00
James Valleroy
648541f5a3
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 22:35:40 -04:00
James Valleroy
dae719fd44
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 22:13:33 -04:00
109247019824
5b059b4581
Translated using Weblate (Bulgarian)
Currently translated at 15.3% (220 of 1436 strings)
2022-05-10 04:10:38 +02:00
ikmaak
3d72066421
Translated using Weblate (Hungarian)
Currently translated at 99.8% (1434 of 1436 strings)
2022-05-10 04:10:38 +02:00
ikmaak
e26eb33611
Translated using Weblate (Ukrainian)
Currently translated at 82.5% (1186 of 1436 strings)
2022-05-10 04:10:37 +02:00
ikmaak
19e7727302
Translated using Weblate (Polish)
Currently translated at 32.4% (466 of 1436 strings)
2022-05-10 04:10:37 +02:00
ikmaak
a827fe4bba
Translated using Weblate (Danish)
Currently translated at 42.8% (615 of 1436 strings)
2022-05-10 04:10:36 +02:00
Sunil Mohan Adapa
bf02dfb38c
matrixsynapse: Allow new dependencies to be installed from backports
Closes: #2215.

- matrix-synapse >= 1.55.0-2 requires python3-jinja2 >= 3.0~

- python3-jinja2 >= 3.0~ requires python3-markupsafe >= 2.0

Tests:

- On a stable container, matrixsynapse app is not installable.

- With the changes, start FreedomBox service, setup will run on the upgrades
module and /etc/apt/preferences.d/51freedombox-apps.conf will be changed to
include the two new entries. After this, matrix-synapse app is installable.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 21:49:26 -04:00