Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chdigiorno committed May 28, 2019
1 parent 796727c commit 63dd246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/configurations/security/tests_ckanext_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 63dd246

Please sign in to comment.