1068 Commits

Author SHA1 Message Date
Bob Girard
d64ce6cc01 Bundle tests with applications
- For each application, add ./tests directory and __init__.py file
  within it.

- Modify test controllers (coverage.py, runtests.py) to find the new
  test directories for testing and coverage analysis.

- Move existing application-specific test modules (test_pagekite.py) to
  the newly created directories.
2015-06-26 12:05:48 +05:30
Sunil Mohan Adapa
f91be5a4f9 ldap: Store password hashes instead of plain text 2015-06-26 00:30:48 +05:30
Sunil Mohan Adapa
82090af423 ldap: Minor styling fixes 2015-06-25 23:40:24 +05:30
James Valleroy
bc8523d9a3 first_boot: Also create LDAP user for initial user. 2015-06-12 15:49:41 +05:30
James Valleroy
3a3009c111 ldap: Switch to SASL authentication.
Assume that root is able to modify user directory entries.
2015-06-12 15:49:41 +05:30
James Valleroy
73a03c3b39 xmpp: Merge actions into single file. 2015-06-12 15:49:41 +05:30
James Valleroy
27e19b4373 users: Change LDAP user password. 2015-06-12 15:49:41 +05:30
James Valleroy
f16ea84f1d users: Delete LDAP user. 2015-06-12 15:49:41 +05:30
James Valleroy
9f371d9a13 users: Rename LDAP user. 2015-06-12 15:49:41 +05:30
James Valleroy
219c3f4b06 users: Show if user is also an LDAP user. 2015-06-12 15:49:41 +05:30
James Valleroy
aece3d7ee0 Use ldapadd instead of slapadd. 2015-06-12 15:49:41 +05:30
James Valleroy
b2cd67c78b xmpp: Add option to use LDAP for authentication. 2015-06-12 15:49:41 +05:30
James Valleroy
910ff97c62 users: Add option to create LDAP user. 2015-06-12 15:49:41 +05:30
Maximiliano Curia
8418713741 Remove unneeded extra server 2015-06-08 21:44:55 +02:00
Maximiliano Curia
24fe6131fc Use the cherrypy autoreload feature only in debug mode
Small devices like the raspberry pi end up eating a number of resources (~20%
of the CPU according to top, even more if something else is increasing the
load, together with tor they eat ~70% of the cpu "on idle" ~50% for plinth
and ~20% for tor) stat the files once per second.
2015-06-08 13:13:29 +02:00
Sunil Mohan Adapa
19301e541e roundcube: New app for web based email client 2015-06-07 17:41:51 -04:00
Sunil Mohan Adapa
56c732ab10 privoxy: New web proxy application 2015-05-27 22:46:57 +05:30
Sunil Mohan Adapa
f2b4dca4eb actions: Add more action utilities
- Utilities for enabling, disabling, restarting and getting enabled
  status of a service.

- Currently they are based on systemd but they can be extended to work
  with sysvinit also.

- Enable and disable also synchronize state with sysvinit.
2015-05-27 22:45:18 +05:30
Sunil Mohan Adapa
1d3b179f6e xmpp: Minor fix to log message 2015-05-26 16:12:25 +05:30
Sunil Mohan Adapa
393095db4e xmpp: Remove special handling for empty arguments
- As tested in the updated test case, subprocess module can send empty
  arguments properly to the invoked commands.  No special handling is
  necessary.
2015-05-26 16:10:54 +05:30
James Valleroy
128aa42873 xmpp: Enable jwchat apache conf after install. 2015-05-24 17:25:54 +05:30
James Valleroy
eca896a2e8 Fix missing import and pass before_install correctly. 2015-05-24 17:25:54 +05:30
James Valleroy
ca61649105 xmpp: Preseed debconf values before ejabberd and jwchat packages are installed. 2015-05-24 17:25:54 +05:30
James Valleroy
6a8fa93477 ikiwiki: Don't redefine built-in type. 2015-05-24 12:50:23 +05:30
James Valleroy
40a5d3206e ikiwiki: Require some Recommends needed to compile wikis. 2015-05-24 12:50:23 +05:30
Sunil Mohan Adapa
e19dca7e37 travis: Add packagekitglib as necessary package 2015-05-24 12:21:28 +05:30
Sunil Mohan Adapa
cf1bb65a0c tests: Minor styling fixes and updates
- Add module level comments.

- Add comments to reflect docstring styling.

- Since most tests can no longer be run directly, remove __main__
  invocation uniformly from all the tests.

- Remove unnecessary test settings and let them take default values.

- Add license header to test settings module.

- Fix a minor issue actions test tear down.

- Improve key/value store tests.
2015-05-24 12:16:51 +05:30
Bob Girard
c16bff7fec Add plinth/tests/data/__init__.py to fix ImportError 2015-05-23 13:59:49 +05:30
Bob Girard
5cadd223d5 Add support for testing Django-dependent modules
- Add django-test-settings.py for Django settings
- Add runtests.py for setting up Django test environment
- Add Django test setup support to setup.py and coverage.py
- Add new test module test_kvstore.py
- Enable existing Django-dependent tests in test_context_processors.py and test_menu.py
2015-05-23 13:59:49 +05:30
Sunil Mohan Adapa
03049b666a network: Minor fix when getting connection and styling 2015-05-21 23:42:11 +05:30
James Valleroy
333599ba24 Merge remote-tracking branch 'sunil/deluge-systemd' 2015-05-16 15:56:27 -04:00
James Valleroy
b00a634647 Update network tests, minor fixes to network.py.
Return UUID when adding a connection.
Have get_connection raise an exception instead of returning None.
2015-05-16 15:39:26 -04:00
James Valleroy
1055787be2 Merge remote-tracking branch 'sunil/network-manager-glib' 2015-05-16 13:18:20 -04:00
James Valleroy
44b045fef7 Merge remote-tracking branch 'fonfon/pagekite-augeas-new' 2015-05-16 10:35:58 -04:00
Sunil Mohan Adapa
939f330816 deluge: Auto start deluge-web using systemd 2015-05-10 14:57:20 +05:30
Sunil Mohan Adapa
a6fa7abbad deluge: Minor fixes and styling
- Updated comments

- Start the daemon before enabling Apache configuration.

- Warn the user about editing the Apache configuration for Deluge.

- Other minor updates.
2015-05-10 13:44:33 +05:30
Sunil Mohan Adapa
6a57dc78f3 deluge: Make starting/stopping daemon safer
- Match the daemon using uid, name and a pidfile for a safer match.

- Make start process idempotent.
2015-05-10 13:40:15 +05:30
Sunil Mohan Adapa
51e6aa3df6 deluge: Rename from bittorrent to deluge
- There could be multiple applications for the same functions.  Although
  in the interface we should we show generic names like 'BitTorrent', we
  could use specific names in the backend.

- There is already a bittorrent client: Transmission.
2015-05-10 10:08:06 +05:30
James Valleroy
55a8b445ad Add BitTorrent module (deluge-web). 2015-05-07 19:37:58 +05:30
Sunil Mohan Adapa
d5e484a6b4 networks: Update dependencies list 2015-05-05 16:10:33 +05:30
Sunil Mohan Adapa
ef17bd8306 networks: Use libnm instead of python-networkmanager 2015-05-05 16:00:25 +05:30
fonfon
32e94058f6 More consistent renaming from default to standard services 2015-05-04 11:04:35 +02:00
fonfon
5cca1f99cf removed/skipped deprecated unit-test 2015-05-04 10:52:29 +02:00
fonfon
702dbf5e61 Renamed default services to standard services 2015-05-04 10:32:53 +02:00
fonfon
0ffaaa3da7 Use JSON as pagekite action-script arguments
This allows to safe some conversions
2015-05-04 10:20:37 +02:00
James Valleroy
e5275e6239 Release 0.4.5 v0.4.5 2015-05-03 18:31:55 -04:00
Sunil Mohan Adapa
9752ab8188 Use modernizr & CSS for user menu without JS
Modernizr adds a class called 'js' to the <html> element when javascript
is available.  We, as a part of basic modernizr setup, add a class
called 'no-js' to <html> element by default.  Use this fact to show/hide
elements when javascript is not available.
2015-05-04 00:56:37 +05:30
fonfon
4561c3bcd9 Removed quote-checking functionality from pagekite
actions.py doesn't use shlex.quote anymore so I don't
have to check for accidentially quoted things anymore.
2015-05-03 19:27:12 +02:00
fonfon
7af92d9e65 Updated unit- and doctests 2015-05-03 19:27:12 +02:00
fonfon
7a4486fadf pagekite: restart service when config is changed
so the changed config gets applied immediately, and
not only after enabling/disabling the service manually.
2015-05-03 16:53:47 +02:00