<commit_before>@odc
Feature: cron jobs
  In order to ODC
  I need some cron jobs

  Background:
    * I ssh to "web-odc-01" with the following credentials:
      | username | keyfile |
      | $lxc$    | $lxc$   |

  Scenario: purge_questionnaires job is cronned
    * file "/etc/cron.d/purge_questionnaires" should exist
    And file "/etc/cron.d/purge_questionnaires" should contain
    """
0 2 * * * root su - certificate -c 'cd /var/www/certificates.theodi.org/current && RAILS_ENV=production `which rake` odc:purge_questionnaires'
    """<commit_msg>Name change<commit_after>@odc
Feature: cron jobs
  In order to ODC
  I need some cron jobs

  Background:
    * I ssh to "web-certificate-01" with the following credentials:
      | username | keyfile |
      | $lxc$    | $lxc$   |

  Scenario: purge_questionnaires job is cronned
    * file "/etc/cron.d/purge_questionnaires" should exist
    And file "/etc/cron.d/purge_questionnaires" should contain
    """
0 2 * * * root su - certificate -c 'cd /var/www/certificates.theodi.org/current && RAILS_ENV=production `which rake` odc:purge_questionnaires'
    """
{'fraction_non_alphanumeric': 0.10931899641577061, 'fraction_numerical': 0.007168458781362007, 'mean_word_length': 3.231060606060606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4790995', 'n_tokens_mistral': 396, 'n_tokens_neox': 379, 'n_words': 105}