<commit_before>Shindo.tests('AWS::RDS | db instance option requests', ['aws', 'rds']) do
  tests('success') do

    tests("#describe_orderable_db_instance_options('mysql)").formats(AWS::RDS::Formats::DESCRIBE_ORDERABLE_DB_INSTANCE_OPTION) do

      body = Fog::AWS[:rds].describe_orderable_db_instance_options('mysql').body

      returns(2) {body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].length}

      group = body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].first
      returns( true ) { group['MultiAZCapable'] }
      returns( 'mysql' ) { group['Engine'] }
      returns( true ) { group['ReadReplicaCapable'] }
      returns( true ) { group['AvailabilityZones'].length >= 1 }

      body
    end

  end

  tests("failures") do
    raises(Fog::AWS::RDS::Error) {Fog::AWS[:rds].describe_orderable_db_instance_options('doesntexist')}
  end

end<commit_msg>Remove failure test; non-existent engine sometimes has options<commit_after>Shindo.tests('AWS::RDS | db instance option requests', ['aws', 'rds']) do
  tests('success') do

    tests("#describe_orderable_db_instance_options('mysql)").formats(AWS::RDS::Formats::DESCRIBE_ORDERABLE_DB_INSTANCE_OPTION) do

      body = Fog::AWS[:rds].describe_orderable_db_instance_options('mysql').body

      returns(2) {body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].length}

      group = body['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'].first
      returns( true ) { group['MultiAZCapable'] }
      returns( 'mysql' ) { group['Engine'] }
      returns( true ) { group['ReadReplicaCapable'] }
      returns( true ) { group['AvailabilityZones'].length >= 1 }

      body
    end

  end

end
{'fraction_non_alphanumeric': 0.14228799089356858, 'fraction_numerical': 0.0022766078542970974, 'mean_word_length': 5.463235294117647, 'pattern_counts': {'":': 0, '<': 3, '<?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': '521705', 'n_tokens_mistral': 551, 'n_tokens_neox': 535, 'n_words': 81}