<commit_before># Copyright (c) 2015 SUSE LLC
# Licensed under the terms of the MIT license.

Feature: Test the remote commands via salt
  In Order to test the remote commands via salt
  As an authorized user
  I want to verify that the remote commands function

  Background:
    Given I am authorized as "testing" with password "<PASSWORD>"

  Scenario: Run a remote command
    Given I follow "Salt"
    And I follow "Remote Commands"
    And I should see a "Remote Commands" text
    And I click on preview
    Then I should see my hostname
    And I click on run
    Then I wait for "3" seconds
    And I expand the results
    And I verify the results

  Scenario: Run a remote command from the systems overview page
    Given I follow "Systems"
    Then I follow this client link
    When I follow "Remote Command" in the content area
    And I enter as remote command this script in
      """
      #!/bin/bash
      touch /root/12345
      """
    And I click on "Schedule"
    Then I should see a "Remote Command has been scheduled successfully" text
    Then "/root/12345" exists on the filesystem
    And I follow "Events" in the content area
    And I follow "History" in the content area
    Then I follow "Run an arbitrary script schedule by testing" in the content area
    And I should see a "Script executed successfully." text
    And I should see a "Return code: 0" text<commit_msg>Typo in link<commit_after># Copyright (c) 2015 SUSE LLC
# Licensed under the terms of the MIT license.

Feature: Test the remote commands via salt
  In Order to test the remote commands via salt
  As an authorized user
  I want to verify that the remote commands function

  Background:
    Given I am authorized as "testing" with password "<PASSWORD>"

  Scenario: Run a remote command
    Given I follow "Salt"
    And I follow "Remote Commands"
    And I should see a "Remote Commands" text
    And I click on preview
    Then I should see my hostname
    And I click on run
    Then I wait for "3" seconds
    And I expand the results
    And I verify the results

  Scenario: Run a remote command from the systems overview page
    Given I follow "Systems"
    Then I follow this client link
    When I follow "Remote Command" in the content area
    And I enter as remote command this script in
      """
      #!/bin/bash
      touch /root/12345
      """
    And I click on "Schedule"
    Then I should see a "Remote Command has been scheduled successfully" text
    Then "/root/12345" exists on the filesystem
    And I follow "Events" in the content area
    And I follow "History" in the content area
    Then I follow "Run an arbitrary script scheduled by testing" in the content area
    And I should see a "Script executed successfully." text
    And I should see a "Return code: 0" text
{'fraction_non_alphanumeric': 0.04425410421127766, 'fraction_numerical': 0.011420413990007138, 'mean_word_length': 2.909344490934449, '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': '4917732', 'n_tokens_mistral': 748, 'n_tokens_neox': 711, 'n_words': 439}