Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more test on config read #1881

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions tests/test_helpers.d/ynhtest_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ ENABLED = False
# TITLE = "Old title"
TITLE = "Lorem Ipsum"
THEME = "colib'ris"
NOT_AN_EMAIL = "thisisnothemailyouarelookingfor"
EMAIL_IS_NOT = "notthemailyouarelookingforthisis"
EMAIL = "[email protected]" # This is a comment without quotes
PORT = 1234 # This is a comment without quotes
URL = 'https://yunohost.org'
Expand Down Expand Up @@ -83,6 +85,8 @@ ENABLED = False
# TITLE = "Old title"
TITLE = "Lorem Ipsum"
THEME = "colib'ris"
NOT_AN_EMAIL = "thisisnothemailyouarelookingfor"
EMAIL_IS_NOT = "notthemailyouarelookingforthisis"
EMAIL = "[email protected]" # This is a comment without quotes
PORT = 1234 # This is a comment without quotes
URL = 'https://yunohost.org'
Expand Down Expand Up @@ -165,6 +169,9 @@ enabled = False
# title = Old title
title = Lorem Ipsum
theme = colib'ris
not_an_email = thisisnothemailyouarelookingfor
email_is_not = notthemailyouarelookingforthisis
not_an.email = thisisnothemailyouarelookingfor
email = [email protected] ; This is a comment without quotes
port = 1234 ; This is a comment without quotes
url = https://yunohost.org
Expand Down Expand Up @@ -216,6 +223,9 @@ enabled = False
# title = Old title
title = Lorem Ipsum
theme = colib'ris
not_an_email = thisisnothemailyouarelookingfor
email_is_not = notthemailyouarelookingforthisis
not_an.email = thisisnothemailyouarelookingfor
email = [email protected] # This is a comment without quotes
port = 1234 # This is a comment without quotes
url = https://yunohost.org
Expand Down Expand Up @@ -293,6 +303,9 @@ enabled: false
# title: old title
title: Lorem Ipsum
theme: colib'ris
not_an_email: thisisnothemailyouarelookingfor
email_is_not: notthemailyouarelookingforthisis
not_an.email: thisisnothemailyouarelookingfor
email: [email protected] # This is a comment without quotes
port: 1234 # This is a comment without quotes
url: https://yunohost.org
Expand Down Expand Up @@ -342,6 +355,9 @@ enabled: false
# title: old title
title: Lorem Ipsum
theme: colib'ris
not_an_email: thisisnothemailyouarelookingfor
email_is_not: notthemailyouarelookingforthisis
not_an.email: thisisnothemailyouarelookingfor
email: [email protected] # This is a comment without quotes
port: 1234 # This is a comment without quotes
url: https://yunohost.org
Expand Down Expand Up @@ -417,6 +433,9 @@ ynhtest_config_read_json() {
"enabled": false,
"title": "Lorem Ipsum",
"theme": "colib'ris",
"not_an_email": "thisisnothemailyouarelookingfor",
"email_is_not": "notthemailyouarelookingforthisis",
"not_an.email": "thisisnothemailyouarelookingfor",
"email": "[email protected]",
"port": 1234,
"url": "https://yunohost.org",
Expand Down Expand Up @@ -468,6 +487,9 @@ ynhtest_config_write_json() {
"enabled": false,
"title": "Lorem Ipsum",
"theme": "colib'ris",
"not_an_email": "thisisnothemailyouarelookingfor",
"email_is_not": "notthemailyouarelookingforthisis",
"not_an.email": "thisisnothemailyouarelookingfor",
"email": "[email protected]",
"port": 1234,
"url": "https://yunohost.org",
Expand Down Expand Up @@ -551,6 +573,8 @@ ynhtest_config_read_php() {
// \$title = "old title";
\$title = "Lorem Ipsum";
\$theme = "colib'ris";
\$not_an_email = "thisisnothemailyouarelookingfor";
\$email_is_not = "notthemailyouarelookingforthisis";
\$email = "[email protected]"; // This is a comment without quotes
\$port = 1234; // This is a second comment without quotes
\$url = "https://yunohost.org";
Expand Down Expand Up @@ -610,6 +634,8 @@ ynhtest_config_write_php() {
// \$title = "old title";
\$title = "Lorem Ipsum";
\$theme = "colib'ris";
\$not_an_email = "thisisnothemailyouarelookingfor";
\$email_is_not = "notthemailyouarelookingforthisis";
\$email = "[email protected]"; // This is a comment without quotes
\$port = 1234; // This is a comment without quotes
\$url = "https://yunohost.org";
Expand Down
Loading