From ce1cfe4fe176f40a7253378b8a3e90c6533c6668 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Thu, 18 May 2023 09:41:40 +0000 Subject: [PATCH] v2 --- manifest.toml | 2 +- scripts/restore | 4 +--- tests.toml | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 tests.toml 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)" +