<commit_before>@cmd-openshift @command @openshift 
Feature: Openshift commands
Commands "minishift openshift [sub-command]" are used for interaction with Openshift
cluster in VM provided by Minishift.

  Scenario: Trying service command when Minishift is not running
     Given Minishift has state "Does Not Exist"
      When executing "minishift openshift service list" succeeds
      Then stdout should contain
      """
      Running this command requires an existing 'minishift' VM, but no VM is defined.
      """

  Scenario: Minishift start
  Minishift must be started in order to interact with OpenShift via "minishift openshift" command
      When executing "minishift start" succeeds

  Scenario: Service list sub-command
     Given Minishift has state "Running"
      When executing "minishift openshift service list" succeeds
      Then stdout should contain "docker-registry"
       And stdout should contain "kubernetes"
       And stdout should contain "router"

  Scenario: Restarting the OpenShift cluster
  Note: This step is based on observation and might be unstable in some environments. It checks for the time when container
        finished last time. When container is new and had never finished then this time value is set to 0001-01-01T00:00:00Z.
        On restart of OpenShift cluster containers are terminated, which sets FinishedAt to actual time. This value persist
        after next start of container.
     Given stdout of command "minishift ssh -- docker inspect --format={{.State.FinishedAt}} origin" is equal to "0001-01-01T00:00:00Z"
      When executing "minishift openshift restart" succeeds
      Then stdout should contain "Restarting OpenShift"
       And stdout of command "minishift ssh -- docker inspect --format={{.State.FinishedAt}} origin" is not equal to "0001-01-01T00:00:00Z"

  Scenario: User deploys nodejs example application from OpenShift repository
      When executing "oc new-app https://github.com/openshift/nodejs-ex -l name=myapp" succeeds
      Then stdout should contain
      """
      Run 'oc status' to view your app.
      """

  @minishift-only
  Scenario: Getting information about OpenShift and kubernetes versions
  Prints the current running OpenShift version to the standard output.<commit_msg>Issue #1531 Adding additional quotes to restart OpenShift step<commit_after>@cmd-openshift @command @openshift 
Feature: Openshift commands
Commands "minishift openshift [sub-command]" are used for interaction with Openshift
cluster in VM provided by Minishift.

  Scenario: Trying service command when Minishift is not running
     Given Minishift has state "Does Not Exist"
      When executing "minishift openshift service list" succeeds
      Then stdout should contain
      """
      Running this command requires an existing 'minishift' VM, but no VM is defined.
      """

  Scenario: Minishift start
  Minishift must be started in order to interact with OpenShift via "minishift openshift" command
      When executing "minishift start" succeeds

  Scenario: Service list sub-command
     Given Minishift has state "Running"
      When executing "minishift openshift service list" succeeds
      Then stdout should contain "docker-registry"
       And stdout should contain "kubernetes"
       And stdout should contain "router"

  Scenario: Restarting the OpenShift cluster
  Note: This step is based on observation and might be unstable in some environments. It checks for the time when container
        finished last time. When container is new and had never finished then this time value is set to 0001-01-01T00:00:00Z.
        On restart of OpenShift cluster containers are terminated, which sets FinishedAt to actual time. This value persist
        after next start of container.
     Given stdout of command "minishift ssh -- "docker inspect --format={{.State.FinishedAt}} origin"" is equal to "0001-01-01T00:00:00Z"
      When executing "minishift openshift restart" succeeds
      Then stdout should contain "Restarting OpenShift"
       And stdout of command "minishift ssh -- "docker inspect --format={{.State.FinishedAt}} origin"" is not equal to "0001-01-01T00:00:00Z"

  Scenario: User deploys nodejs example application from OpenShift repository
      When executing "oc new-app https://github.com/openshift/nodejs-ex -l name=myapp" succeeds
      Then stdout should contain
      """
      Run 'oc status' to view your app.
      """

  @minishift-only
  Scenario: Getting information about OpenShift and kubernetes versions
  Prints the current running OpenShift version to the standard output.
{'fraction_non_alphanumeric': 0.05641472446090177, 'fraction_numerical': 0.01916793726856894, 'mean_word_length': 3.624370594159114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3218595', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1164, 'n_words': 547}