5723 Commits

Author SHA1 Message Date
Joseph Nuthalapati
71cabff4d0
functional-tests: Use latest version of splinter
splinter 0.13.0 has a bug which is fixed in 0.14.0

See https://github.com/cobrateam/splinter/pull/749

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-25 20:58:11 -07:00
Veiko Aasa
e2e3768fe1
ikiwiki: Validate a path when deleting wiki or blog
I tested that ikiwiki functional tests pass and running the command
`sudo ./actions/ikiwiki delete  --name '../'`
returns an error and does not delete any directory.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-25 14:03:25 -07:00
Fioddor Superconcentrado
f0000c4ba3
post-processor: Solve 1908 fixing the wiki links fix
The previous logic of the wiki links fix didn't work for translated pages.

Closes: #1908.

Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
[jvalleroy: Remove extra spaces]
[jvalleroy: Fix output path]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-25 10:12:27 -04:00
Michael Breidenbach
7e41e96d95
Translated using Weblate (Swedish)
Currently translated at 100.0% (1286 of 1286 strings)
2020-07-24 19:41:55 +02:00
Michael Breidenbach
2d8742f5ec
Translated using Weblate (German)
Currently translated at 100.0% (1286 of 1286 strings)
2020-07-24 19:41:55 +02:00
Павел Протасов
e220547fd2
Translated using Weblate (Russian)
Currently translated at 74.1% (954 of 1286 strings)
2020-07-23 04:33:44 +02:00
Fioddor Superconcentrado
514f1f5699 Typo 2020-07-22 14:29:58 +00:00
Fioddor Superconcentrado
6536c8fbd9 Specify machine
Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
2020-07-22 14:28:21 +00:00
Fioddor Superconcentrado
b20a9d6190 Branch-out
Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
2020-07-22 14:23:57 +00:00
Fioddor Superconcentrado
0f0f7be681 sudo user needed for container
Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
2020-07-22 13:52:59 +00:00
Joseph Nuthalapati
6dd7dcd2f8
functional-tests: Fix instructions for running functional tests
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-07-22 12:21:45 +03:00
Sunil Mohan Adapa
866fa6cde3
container: unstable: Handle interface naming for systemd < 245
systemd-nspawn versions < 245 seem to truncate the interface name from
've-fbx-unstable' to 've-fbx-unstabl'.

See:

 - https://github.com/systemd/systemd/pull/12865
 - https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/1856

Tests:

- On Debian Buster with systemd version 241, start testing and unstable
containers. For testing the interface name is ve-fbx-testing and for unstable it
is ve-fbx-unstabl. The containers are brought up and provisioned successfully.
Running 'nmcli c show fbx-${distribution}-shared' shows the correct interface
name assigned.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-07-22 12:11:21 +03:00
Joseph Nuthalapati
2773c4737e
container: Add unstable distribution
Related freedombox-team/infrastructure!38

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-07-22 12:10:58 +03:00
James Valleroy
572479068f
ejabberd: Use new ruamel.yaml API and allow duplicate keys
New API was introduced in ruamel.yaml 0.15.0:
https://yaml.readthedocs.io/en/latest/api.html

Set allow_duplicate_keys to true to avoid error when parsing
ejabberd.yaml.

Tested ejabberd install on unstable, testing, and stable.

Closes: #1888.

Additional tests:

- Install the app. It will contain configuration related to LDAP and SSL
certificates.

- Add a domain to FreedomBox it will show up in the configuration.

- Add a domain that is already present in the configuration file. It will not be
added again.

- Enable/disable MAM. The configuration is updated accordingly.

- Login via JSXC and send simple messages across two users.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-21 18:19:36 -07:00
Sunil Mohan Adapa
7fbc9fc625
samba: cosmetic: Minor yapf fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-21 17:16:14 -07:00
Veiko Aasa
31eb35cb9e
samba: Hide common system partitions
Hide some common partitions where users shouldn't create a share -
/.snapshots, /boot and /boot/firmware.

Tested that mount points 'boot' and '.snapshots' do not appear in the
list of shareable disks on Pioneer Freedombox.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Add /boot/efi to list of ignored mount points]
[sunil: Update test to check if mounts points are ignored]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-21 17:14:43 -07:00
James Valleroy
c7bf1bb46f
tests: functional: Strip trailing / from FREEDOMBOX_URL
Some web app tests combine the configured URL with expected paths. Avoid failing
these tests when there is a trailing slash at the end of the URL.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-21 15:24:25 -07:00
Doma Gergő
a0b2736746
Translated using Weblate (Hungarian)
Currently translated at 84.0% (1081 of 1286 strings)
2020-07-20 04:41:53 +02:00
James Valleroy
14fb7f9635
ci: Allow fuse to be installed
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 18:57:07 -04:00
Sunil Mohan Adapa
dc75a52d67
backups: Make app available by default
We have already progress quite far along in supporting backups and restore. This
is a critical functionality of FreedomBox.

Fixes: #1459.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 18:51:57 -04:00
Joseph Nuthalapati
ce231254f0
searx: Add functional test for app availability
Add a functional test that checks whether the SearX web application is
available. This can catch the case of an Internal Server Error thrown by
uWSGI server. See Debian bug https://bugs.debian.org/965095

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 08:01:25 -04:00
Sunil Mohan Adapa
0c8ed13882
matrixsynapse: Allow upgrade to version 1.17
Tests:

- Run with new code. Setup is run for upgrades modules.
/etc/apt/preferences.d/51-freedombox-apps.pref contains the changes for
python3-attr.

- On stable. apt policy python3-attr shows version 19.3.0-3~bpo10+1 is the
preferred version.

- On stable, installing matrix-synapse leads to installation of python3-attr
=19.3.0-3~bpo10+1.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:42:52 -04:00
Sunil Mohan Adapa
73e55f06b4
upgrades: security: Don't with the technical term 'backports' in UI
- Call backports as 'Frequent Feature Updates'. This is make it easy for a
non-technical user to understand better what they are.

- Clearly recommend enabling backports as this is our current consensus.

- Explain that if backports are disabled, feature updates will come every 2
years or so.

- Show the status of backports on upgrades app even after it is enabled.
Disappearing options in the UI are generally confusing for users (hiding of
expand partition feature should be seen as exception rather than as example).

- Tone down the alarm on backports:

  - Rename 'Security Notice' to 'Frequent Feature Updates' in security page.

  - Remove 'on a best-effort basis' phrase, as everything in Debian is similar.

  - Set the activate button to primary priority rather than warning to make the
  user comfortable with it.

- Share translation strings across the two apps so that effort for translators
is reduced.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:10:44 -04:00
Sunil Mohan Adapa
27d5d93e58
security: Don't show report button as part of backports notice
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:10:41 -04:00
Sunil Mohan Adapa
56c402fb8b
upgrades: Remove unused context variable
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:10:38 -04:00
Sunil Mohan Adapa
b0fa7ff27c
upgrades: Minor isort fix
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:10:35 -04:00
Fioddor Superconcentrado
41c20602a3
Translated using Weblate (Spanish)
Currently translated at 100.0% (1286 of 1286 strings)
2020-07-19 03:10:35 +02:00
Doma Gergő
187def3b02
Translated using Weblate (Hungarian)
Currently translated at 83.8% (1078 of 1286 strings)
2020-07-18 23:41:54 +02:00
Fioddor Superconcentrado
e711043f2e
Translated using Weblate (Spanish)
Currently translated at 100.0% (1286 of 1286 strings)
2020-07-18 23:41:53 +02:00
Federico Ceratto
d399013d82 Release v. 20.13 to Unstable debian/20.13 2020-07-18 12:14:39 +01:00
Doma Gergő
a1d2a55bd1
Translated using Weblate (Hungarian)
Currently translated at 80.7% (1038 of 1286 strings)
2020-07-16 18:41:53 +02:00
Yogesh
d1232b49f9
Translated using Weblate (Kannada)
Currently translated at 0.1% (2 of 1286 strings)
2020-07-16 18:41:53 +02:00
Allan Nordhøy
665072d7f2
Translated using Weblate (Swedish)
Currently translated at 99.0% (1274 of 1286 strings)
2020-07-15 11:41:53 +02:00
Allan Nordhøy
154d0978b9
Translated using Weblate (Norwegian Bokmål)
Currently translated at 85.4% (1099 of 1286 strings)
2020-07-15 11:41:53 +02:00
Adolfo Jayme Barrientos
91486654cf
Translated using Weblate (Spanish)
Currently translated at 99.1% (1275 of 1286 strings)
2020-07-15 11:41:52 +02:00
James Valleroy
d5bebba6e7
Prepare for v20.13 release
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-13 19:06:50 -04:00
James Valleroy
1e31f73e40
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-13 19:04:38 -04:00
James Valleroy
aa0ec071c3
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-13 18:34:13 -04:00
Doma Gergő
bda7202837
Translated using Weblate (Hungarian)
Currently translated at 81.0% (1038 of 1280 strings)
2020-07-14 00:29:40 +02:00
Tang Zongxun
fa7e62a6e1
Translated using Weblate (Chinese (Simplified))
Currently translated at 48.8% (625 of 1280 strings)
2020-07-14 00:29:40 +02:00
Allan Nordhøy
7dde001ad5
Translated using Weblate (Norwegian Bokmål)
Currently translated at 85.0% (1089 of 1280 strings)
2020-07-14 00:29:39 +02:00
James Valleroy
f8eb6c8cc6
upgrades: Refactor use of lsb_release
Tests:
- On unstable and testing:
  - Ran functional tests for upgrades.
  - Ran actions "upgrades setup" and "upgrades setup-repositories".
- On testing:
  - In develop mode, activated backports.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:32 -07:00
James Valleroy
a60341f0d8
upgrades: Split apt preferences into 2 files
- 50freedombox4.pref handles freedombox package from current
  backports. Whenever upgrading to a new Debian release, backports can
  be activated for the new release, and will always include the
  freedombox package at the start.

- 51freedombox-apps.pref handles apps, and each entry is particular to
  a Debian release. For example, after bullseye release, entries from
  bullseye-backports can be added, and entries from buster-backports
  can be removed.

Tests:
- In testing container, run setup in development mode. Apt preferences
  files have the expected content.
- In stable vagrant box, install deb with these changes. Apt
  preferences files have the expected content.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:29 -07:00
James Valleroy
2f1a6dc0f7
upgrades: Show dist of backports to be activated
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:26 -07:00
James Valleroy
6ac3d85bae
upgrades: Enable backports for testing only in development mode
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:23 -07:00
James Valleroy
2176ab97ad
upgrades: Rewrite apt prefs file when activating backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:19 -07:00
James Valleroy
ca91120fdc
upgrades: Check that backports is for current release
- If backports is for older release, then it can be activated again to
  upgrade to latest release. (Plan is to make this automatic, but
  leave the manual option as a fallback.)

- Security notice still shown if older backports are enabled.

Tests:

- On Buster system, change distribution in
  /etc/apt/sources.list.d/freedombox2.list to
  stretch-backports. Updates page shows button to activate backports
  again. Activate and check the source list to confirm that it has
  buster-backports again.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:16 -07:00
James Valleroy
6b0744c1c7
upgrades: Use only sources file to determine if backports enabled
Tests:
- Build deb and install in buster image. Manually remove backports
  sources file. Security page does not show backports notice. Updates
  page shows button to activate backports.
- Activate backports from updates page. Success message is shown and
  button to activate backports is removed. Security page shows
  backports notice.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:13 -07:00
James Valleroy
7caed57caf
upgrades: Add button to activate backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:44:10 -07:00
James Valleroy
f41cc116a1
security: Move backports notice to security page
Move get_backports_in_use to upgrades.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-13 14:42:29 -07:00