Skip to content

Commit

Permalink
Merge pull request freedomofpress#4419 from zenmonkeykstop/4418-add-l…
Browse files Browse the repository at this point in the history
…ocales-in-staging

added Greek and Arabic supported locales in staging
  • Loading branch information
redshiftzero authored May 9, 2019
2 parents 144f364 + e51f745 commit 13e3a0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion install_files/ansible-base/group_vars/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ securedrop_app_gpg_fingerprint: "65A1B5FF195B56353CC63DFFCC40EF1228271441"

source_apache_log_location: "/var/log/apache2/source-error.log"
apache_logging_level: "info"

securedrop_supported_locales:
- el
- ar
### Used by the mon role ###
# The OSSEC alert GPG public key has to be in the install_files/ansible-base/ or
# install_files/ansible-base/roles/app/files/ directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ def test_securedrop_application_apt_dependencies(host, package):

def test_securedrop_application_test_locale(host):
"""
Ensure SecureDrop DEFAULT_LOCALE is present.
Ensure both SecureDrop DEFAULT_LOCALE and SUPPORTED_LOCALES are present.
"""
securedrop_config = host.file("{}/config.py".format(
securedrop_test_vars.securedrop_code))
with host.sudo():
assert securedrop_config.is_file
assert securedrop_config.contains("^DEFAULT_LOCALE")
assert securedrop_config.content.count("DEFAULT_LOCALE") == 1
assert securedrop_config.contains("^SUPPORTED_LOCALES = \[u'el', u'ar', 'en_US'\]")
assert securedrop_config.content.count("SUPPORTED_LOCALES") == 1


def test_securedrop_application_test_journalist_key(host):
Expand Down

0 comments on commit 13e3a0f

Please sign in to comment.