<commit_before>@RALLY_US2191
Feature: Negative XXE Injection Testing

Background: I have a landing zone route configured
    Given I am using local data store
  And I am using preconfigured Ingestion Landing Zone

Scenario: Post a zip file with an external entity that attempts to access a local file
  Given I post "XXETest.zip" file as the payload of the ingestion job
  When zip file is scp to ingestion landing zone
  And I am willing to wait upto 30 seconds for ingestion to complete
  And a batch job for file "XXETest.zip" is completed in database
  And a batch job log has been created
  And I should see "InterchangeEducationOrganization.xml records considered: 0" in the resulting batch job file
  And I should see "InterchangeEducationOrganization.xml records ingested successfully: 0" in the resulting batch job file
  And I should see "InterchangeEducationOrganization.xml records failed xsd validation: 1" in the resulting batch job file
  And I should see "Not all records were processed completely due to errors." in the resulting batch job file
  And I should see "Processed 0 records." in the resulting batch job file
  And I should not see a warning log file created
<commit_msg>Fixed XXE AT<commit_after>@RALLY_US2191
Feature: Negative XXE Injection Testing

Background: I have a landing zone route configured
    Given I am using local data store
  And I am using preconfigured Ingestion Landing Zone

Scenario: Post a zip file with an external entity that attempts to access a local file
  Given I post "XXETest.zip" file as the payload of the ingestion job
  When zip file is scp to ingestion landing zone
  And I am willing to wait upto 30 seconds for ingestion to complete
  And a batch job for file "XXETest.zip" is completed in database
  And a batch job log has been created
  And I should see "InterchangeEducationOrganization.xml records considered: 0" in the resulting batch job file
  And I should see "InterchangeEducationOrganization.xml records ingested successfully: 0" in the resulting batch job file
  And I should see "InterchangeEducationOrganization.xml records failed xsd validation: 1" in the resulting batch job file
  And I should see "All records processed successfully" in the resulting batch job file
  And I should see "Processed 0 records." in the resulting batch job file
  #And I should see "BASE_0017" in the resulting error log file for "InterchangeEducationOrganization.xml"
  And I should not see a warning log file created

{'fraction_non_alphanumeric': 0.027016129032258064, 'fraction_numerical': 0.00967741935483871, 'mean_word_length': 4.428884026258205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '3111581', 'n_tokens_mistral': 656, 'n_tokens_neox': 606, 'n_words': 380}