From c5ee844cb120acf4f0736642d1ca476aa681ab2f Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 3 Feb 2019 19:59:43 -0500 Subject: [PATCH] shadowsocks: Use resolvable domains in functional tests Shadowsocks server will fail to start if the domain cannot be resolved. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- functional_tests/features/shadowsocks.feature | 6 +++--- functional_tests/step_definitions/application.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functional_tests/features/shadowsocks.feature b/functional_tests/features/shadowsocks.feature index d7f99b474..e83a476ce 100644 --- a/functional_tests/features/shadowsocks.feature +++ b/functional_tests/features/shadowsocks.feature @@ -36,9 +36,9 @@ Scenario: Disable shadowsocks application Scenario: Backup and restore shadowsocks Given the shadowsocks application is enabled - When I configure shadowsocks with server beforebackup.example.com and password beforebackup123 + When I configure shadowsocks with server example.com and password beforebackup123 And I create a backup of the shadowsocks app data - And I configure shadowsocks with server afterbackup.example.com and password afterbackup123 + And I configure shadowsocks with server example.org and password afterbackup123 And I restore the shadowsocks app data backup Then the shadowsocks service should be running - And shadowsocks should be configured with server beforebackup.example.com and password beforebackup123 + And shadowsocks should be configured with server example.com and password beforebackup123 diff --git a/functional_tests/step_definitions/application.py b/functional_tests/step_definitions/application.py index e1e517ff9..f64dd87a7 100644 --- a/functional_tests/step_definitions/application.py +++ b/functional_tests/step_definitions/application.py @@ -107,7 +107,7 @@ def select_domain_name(browser, app_name, domain_name): @given('the shadowsocks application is configured') def configure_shadowsocks(browser): - application.configure_shadowsocks(browser, 'some.shadow.tunnel', + application.configure_shadowsocks(browser, 'example.com', 'fakepassword')