<commit_before># Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

# language: en
@ec2
Feature: Amazon Elastic Compute Cloud

  I want to use Amazon Elastic Compute Cloud

  Scenario: DescribeRegions
    Given I describe EC2 regions "us-east-1, us-west-1"
    Then the EC2 endpoint for "us-east-1" should be "ec2.us-east-1.amazonaws.com"
    And the EC2 endpoint for "us-west-1" should be "ec2.us-west-1.amazonaws.com"

  Scenario: Error handling
    Given I describe the EC2 instance "i-12345678"
    Then the error code should be "InvalidInstanceID.NotFound"
    And the error message should be:
    """
    The instance ID 'i-12345678' does not exist
    """
    And the status code should be 400<commit_msg>Fix failing EC2 integration test due to service changes<commit_after># Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

# language: en
@ec2
Feature: Amazon Elastic Compute Cloud

  I want to use Amazon Elastic Compute Cloud

  Scenario: DescribeRegions
    Given I describe EC2 regions "us-east-1, us-west-1"
    Then the EC2 endpoint for "us-east-1" should be "ec2.us-east-1.amazonaws.com"
    And the EC2 endpoint for "us-west-1" should be "ec2.us-west-1.amazonaws.com"

  Scenario: Error handling
    Given I describe the EC2 instance ""
    Then the error code should be "MissingParameter"
    And the error message should be:
    """
    The request must contain the parameter InstanceId
    """
    And the status code should be 400
{'fraction_non_alphanumeric': 0.07596463022508039, 'fraction_numerical': 0.029340836012861738, 'mean_word_length': 3.5753676470588234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7426810', 'n_tokens_mistral': 732, 'n_tokens_neox': 694, 'n_words': 332}