From a75b4156247ecb6e42aa78c1cb54808a3c6c931d Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Thu, 25 Oct 2018 11:36:43 -0700 Subject: [PATCH] tests: Change the domain to be an FQDN Reviewed-by: James Valleroy --- functional_tests/features/configuration.feature | 4 ++-- functional_tests/features/matrixsynapse.feature | 4 ++-- functional_tests/step_definitions/system.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functional_tests/features/configuration.feature b/functional_tests/features/configuration.feature index bacf50475..77c85e5a2 100644 --- a/functional_tests/features/configuration.feature +++ b/functional_tests/features/configuration.feature @@ -27,8 +27,8 @@ Scenario: Change hostname Then the hostname should be mybox Scenario: Change domain name - When I change the domain name to mydomain - Then the domain name should be mydomain + When I change the domain name to mydomain.example + Then the domain name should be mydomain.example Scenario: Change default app Given the syncthing application is installed diff --git a/functional_tests/features/matrixsynapse.feature b/functional_tests/features/matrixsynapse.feature index 9f121dcaa..10d00b20f 100644 --- a/functional_tests/features/matrixsynapse.feature +++ b/functional_tests/features/matrixsynapse.feature @@ -21,9 +21,9 @@ Feature: Matrix Synapse VoIP and Chat Server Background: Given I'm a logged in user - Given the domain name is set to mydomain + Given the domain name is set to mydomain.example Given the matrixsynapse application is installed - Given the domain name for matrixsynapse is set to mydomain + Given the domain name for matrixsynapse is set to mydomain.example Scenario: Enable matrixsynapse application Given the matrixsynapse application is disabled diff --git a/functional_tests/step_definitions/system.py b/functional_tests/step_definitions/system.py index c42395dde..e74a851f9 100644 --- a/functional_tests/step_definitions/system.py +++ b/functional_tests/step_definitions/system.py @@ -41,7 +41,7 @@ def set_default_app(browser, app_name): system.set_default_app(browser, app_name) -@given(parsers.parse('the domain name is set to {domain:w}')) +@given(parsers.parse('the domain name is set to {domain:S}')) def set_domain_name(browser, domain): system.set_domain_name(browser, domain)