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

Feature: Check the SCC Migration UI
  In order to test the SCC Migration feature UI behavior
  As an admin user
  I want to go to the SUSE Manager Configuration page

  Scenario: SUSE Customer Center is not available
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is not yet migrated to SCC
    Given the SCC is not yet the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "The SUSE Customer Center is not yet available." text
    Then I restore migration state

  Scenario: SUSE Manager is still connected to NCC
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is not yet migrated to SCC
    Given the SCC is the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "SUSE Manager is still connected to the Novell Customer Center." text
    Then I should see a "Migration is a straightforward process but may take some minutes." text
    Then I should see a "Start Migration to SUSE Customer Center" text
    Then I restore migration state

  Scenario: SUSE Manager is already migrated to SCC
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is migrated to SCC
    Given the SCC is the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "Congratulations! SUSE Manager is migrated to the SUSE Customer Center." text
    Then I restore migration state

<commit_msg>Style update: copyright, whitespace<commit_after># Copyright (c) 2015 SUSE LLC
# Licensed under the terms of the MIT license.

Feature: Check the SCC Migration UI
  In order to test the SCC Migration feature UI behavior
  As an admin user
  I want to go to the SUSE Manager Configuration page

  Scenario: SUSE Customer Center is not available
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is not yet migrated to SCC
    Given the SCC is not yet the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "The SUSE Customer Center is not yet available." text
    Then I restore migration state

  Scenario: SUSE Manager is still connected to NCC
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is not yet migrated to SCC
    Given the SCC is the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "SUSE Manager is still connected to the Novell Customer Center." text
    Then I should see a "Migration is a straightforward process but may take some minutes." text
    Then I should see a "Start Migration to SUSE Customer Center" text
    Then I restore migration state

  Scenario: SUSE Manager is already migrated to SCC
    Given I am authorized as "admin" with password "<PASSWORD>"
    Given migration state saved
    Given the server is migrated to SCC
    Given the SCC is the default customer center
    When I follow "Admin"
    When I follow "SUSE Manager Configuration"
    When I follow "SUSE Customer Center" in the left menu
    Then I should see a "Congratulations! SUSE Manager is migrated to the SUSE Customer Center." text
    Then I restore migration state

{'fraction_non_alphanumeric': 0.03269476372924649, 'fraction_numerical': 0.0020434227330779057, 'mean_word_length': 3.3852183650615904, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3285023', 'n_tokens_mistral': 984, 'n_tokens_neox': 933, 'n_words': 615}