<commit_before># @sustainer: <EMAIL>

@manual
@syndesis-upgrade-prod
Feature: Syndesis Upgrade - Productized Version

  # Before upgrading, create some integration and verify that it is working
  @prod-upgrade-before
  Scenario: Syndesis Prod Upgrade - Before upgrading
    Given deploy HTTP endpoints
      And create HTTP connection
    When inserts into "contact" table
      | X | Y | Z | db |
      And create start DB periodic sql invocation action step with query "SELECT * FROM CONTACT" and period "5000" ms
      And add a split step
      And start mapper definition with name: "mapping 1"
      And MAP using Step 2 and field "/first_name" to "/task"
      And create finish DB invoke sql action step with query "INSERT INTO TODO (task, completed) VALUES (:#task, 0)"
    Then create integration with name: "upgrade"
      And wait for integration with name: "upgrade" to become active
      And verify integration with task "X"

  # After the upgrade is done, create a new integration and verify that it is working + verify that the old one is still working as well
  @prod-upgrade-after
  Scenario: Syndesis Prod Upgrade - After upgrading
    Given add "timer" endpoint with connector id "timer" and "timer-action" action and with properties:
      | action       | period |
      | timer-action | 1000   |
    And create HTTP "GET" step
    And create integration with name: "timer-to-http"
    And wait for integration with name: "timer-to-http" to become active
    Then verify that after "2.5" seconds there were "2" calls
      And verify integration with task "X"<commit_msg>[FUSEQE-3330] Rebuild integration after prod upgrade<commit_after># @sustainer: <EMAIL>

@manual
@syndesis-upgrade-prod
Feature: Syndesis Upgrade - Productized Version

  # Before upgrading, create some integration and verify that it is working
  @prod-upgrade-before
  Scenario: Syndesis Prod Upgrade - Before upgrading
    Given deploy HTTP endpoints
      And create HTTP connection
    When inserts into "contact" table
      | X | Y | Z | db |
      And create start DB periodic sql invocation action step with query "SELECT * FROM CONTACT" and period "5000" ms
      And add a split step
      And start mapper definition with name: "mapping 1"
      And MAP using Step 2 and field "/first_name" to "/task"
      And create finish DB invoke sql action step with query "INSERT INTO TODO (task, completed) VALUES (:#task, 0)"
    Then create integration with name: "upgrade"
      And wait for integration with name: "upgrade" to become active
      And verify integration with task "X"

  # After the upgrade is done, create a new integration and verify that it is working + verify that the old one is still working as well
  @prod-upgrade-after
  Scenario: Syndesis Prod Upgrade - After upgrading
    When rebuild integration with name "upgrade"
    Then wait for integration with name: "upgrade" to become active
      And verify integration with task "X"
    Given add "timer" endpoint with connector id "timer" and "timer-action" action and with properties:
      | action       | period |
      | timer-action | 1000   |
    And create HTTP "GET" step
    And create integration with name: "timer-to-http"
    And wait for integration with name: "timer-to-http" to become active
    Then verify that after "2.5" seconds there were "2" calls
      And verify integration with task "X"
{'fraction_non_alphanumeric': 0.06318275760259817, 'fraction_numerical': 0.0094478889873044, 'mean_word_length': 3.2723833543505676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '934952', 'n_tokens_mistral': 939, 'n_tokens_neox': 868, 'n_words': 452}