diff --git a/manifest.toml b/manifest.toml index b538b09..ee85c52 100644 --- a/manifest.toml +++ b/manifest.toml @@ -47,7 +47,7 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen default = false [install.is_public_api] - ask.en = "Should Paperless-ngx be accessible for apps." + ask.en = "Should Paperless-ngx API be accessible for apps." type = "boolean" default = false diff --git a/scripts/restore b/scripts/restore index 5a74e75..67bef30 100755 --- a/scripts/restore +++ b/scripts/restore @@ -98,10 +98,8 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE THE POSTGRESQL DATABASE #================================================= -#REMOVEME? ynh_script_progression --message="Restoring the PostgresSQL database..." --weight=1 +ynh_script_progression --message="Restoring the PostgresSQL database..." --weight=1 -#REMOVEME? db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) -#REMOVEME? ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql #================================================= diff --git a/tests.toml b/tests.toml new file mode 100644 index 0000000..c11fec3 --- /dev/null +++ b/tests.toml @@ -0,0 +1,27 @@ +test_format = 1.0 + +[default] + + # ------------ + # Tests to run + # ------------ + + exclude = ["install.subdir"] + + # ------------------------------- + # Default args to use for install + # ------------------------------- + + # By default, the CI will automagically fill the 'standard' args + # such as domain, path, admin, is_public and password with relevant values + # and also install args with a "default" provided in the manifest.. + # It should only make sense to declare custom args here for args with no default values + + args.admin_pw = "acab" + + # ------------------------------- + # Commits to test upgrade from + # ------------------------------- + + test_upgrade_from.8236072.name = "Upgrade from 1.14.5~ynh1 (v1)" +