- Static files are directly served by the CherryPy web server.
- .gitignore file placed as a placeholder to be able to commit the directory
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
- Introduce a BackupApp class to store all information about application being
backed up. This cleans up apps lists vs. manifest lists spread out in the
code.
- Introduce ServiceHandler to abstract dealing with services and web
configuration.
- Add enable and disable actions in apache action.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
- All the configuration is in data folder, no custom configuration.
- SSL certificate is in the data folder.
- Users, logs etc. are in sqlite file in the data folder.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
When the application state is disabled to start with, the test would fail.
Ensure that application is enabled at the start of the test.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This still makes sense because restoration might restore settings and state of
application being installed (to be implemented).
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
- Clients information allows us to show launch web interface button consistently
like other applications instead of showing it in the description.
- Empty backup information allows for the application to be installed when a
backup is restored.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
- This serves two purposes. First is to assure user in the interface that backup
of the module is not required. Second is to make sure that if an application
is installed during backup it is also reinstalled during restore process (this
need to be implemented).
- Allow backup test to run independently. Initialize the cfg module so that
load_modules() works.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
Only check validity of keys if they are present. Allows writing simpler manifest
files without losing any information.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
- added unittests
- introduced function backups.get_location_path()
- minor docstring / comment and naming updates
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
We are wrongly showing a warning message and disabling the install button on the
setup page on newly spun up AWS cloud images. This is a false positive since the
applications might be available in Debian but the apt caches are not updated.
Taking care of this issue as well.
The function returns None and not False to distinguish this as a case different
from returning a result about whether the package is unavailable or not.
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>