diff --git a/tests/configurations/security/tests_ckanext_security.py b/tests/configurations/security/tests_ckanext_security.py index 7624800..04b2835 100644 --- a/tests/configurations/security/tests_ckanext_security.py +++ b/tests/configurations/security/tests_ckanext_security.py @@ -15,13 +15,13 @@ def test_successful_plugin_enablement_and_disablement(self): # Enable subprocess.check_call( "docker exec -it andino {0}./{1}".format(security_path, enablement_script), shell=True) - cmd = "grep 'ckan.site_url = https://localhost' /etc/ckan/default/production.ini" - search_result = subprocess.check_output("docker exec -it andino {}".format(cmd)).strip() + cmd = "grep '## ckanext-security' /etc/ckan/default/production.ini" + search_result = subprocess.check_output("docker exec -it andino {}".format(cmd), shell=True).strip() nt.assert_equal("## ckanext-security", search_result) # Disable subprocess.check_call( "docker exec -it andino {0}./{1}".format(security_path, disablement_script), shell=True) cmd = "{} || true".format(cmd) - search_result = subprocess.check_output("docker exec -it andino {}".format(cmd)).strip() + search_result = subprocess.check_output("docker exec -it andino {}".format(cmd), shell=True).strip() nt.assert_equal("", search_result)