From 1856729055853c88fd9ed3580de0eabc00e6b32e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Aug 2024 19:43:16 +0200 Subject: [PATCH 1/4] Add experimental curl tests --- tests.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests.toml b/tests.toml index cdd5e776..a2af6942 100644 --- a/tests.toml +++ b/tests.toml @@ -11,3 +11,26 @@ test_format = 1.0 test_upgrade_from.9c6d1eea.name = "Upgrade from 27.1.4" test_upgrade_from.e9f82ab7.name = "Upgrade from 28.0.6" test_upgrade_from.e9f82ab7.args.system_addressbook_exposed = "yes" + + [default.curl_tests] + #home.path = "/" + home.expect_title = "Login - Nextcloud" + + #dash.path = "/" + dash.logged_on_sso = true + dash.expect_title = "Tableau de bord - Nextcloud" + + admin.path = "/settings/admin" + admin.logged_on_sso = true + admin.expect_title = "Paramètres d'administration - Nextcloud" + + asset.path = "/core/img/logo/logo.svg" + + file.path = "/remote.php/dav/files/__USER__/Readme.md" + file.logged_on_sso = true + file.expect_content = "# Welcome to Nextcloud!" + + caldav.base_url = "https://domain.tld" + caldav.path = "/.well-known/caldav" + caldav.logged_on_sso = true + caldav.expect_content = "This is the WebDAV interface." From efeea41ddffe868578ba4323d645d823fcbea318 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Aug 2024 19:56:06 +0200 Subject: [PATCH 2/4] curl tests: fix expect_title lang --- tests.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.toml b/tests.toml index a2af6942..736512da 100644 --- a/tests.toml +++ b/tests.toml @@ -18,11 +18,11 @@ test_format = 1.0 #dash.path = "/" dash.logged_on_sso = true - dash.expect_title = "Tableau de bord - Nextcloud" + dash.expect_title = "Dashboard - Nextcloud" admin.path = "/settings/admin" admin.logged_on_sso = true - admin.expect_title = "Paramètres d'administration - Nextcloud" + admin.expect_title = "Administration settings - Nextcloud" asset.path = "/core/img/logo/logo.svg" From e9a7d0e9d585593ce43866f467faaeb255dab059 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 25 Aug 2024 10:11:39 +0200 Subject: [PATCH 3/4] curl tests: fix caldav test using __DOMAIN__ syntax --- tests.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.toml b/tests.toml index 736512da..43833963 100644 --- a/tests.toml +++ b/tests.toml @@ -30,7 +30,7 @@ test_format = 1.0 file.logged_on_sso = true file.expect_content = "# Welcome to Nextcloud!" - caldav.base_url = "https://domain.tld" + caldav.base_url = "https://__DOMAIN__" caldav.path = "/.well-known/caldav" caldav.logged_on_sso = true caldav.expect_content = "This is the WebDAV interface." From 95a0b94bda61a8a692985225b3f9aacccd18628e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:09:57 +0200 Subject: [PATCH 4/4] curl tests: auto-test assets on the home page --- tests.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests.toml b/tests.toml index f2b60a5e..bd538ce0 100644 --- a/tests.toml +++ b/tests.toml @@ -17,6 +17,7 @@ test_format = 1.0 [default.curl_tests] #home.path = "/" home.expect_title = "Login - Nextcloud" + home.auto_test_assets = true #dash.path = "/" dash.logged_on_sso = true