<commit_before>package core

import org.scalatest.{FunSpec, Matchers}

class ServiceMethodsSpec extends FunSpec with Matchers {

  it("missing method") {
    val json = """
    {
      "name": "Api Doc",
      "base_url": "http://localhost:9000",

      "models": {
        "user": {
          "fields": [
            { "name": "id", "type": "long" }
          ]
        }
      },

      "resources": {
        "user": {
          "operations": [
            {
              "name": "id",
              "type": "long"
            }
          ]
        }
      }

    }
    """

    val validator = ServiceValidator(TestHelper.serviceConfig, json)
    validator.errors.mkString("") should be("Resource[user] /users: Missing HTTP method")
  }

}<commit_msg>Update test based on format of error msg<commit_after>package core

import org.scalatest.{FunSpec, Matchers}

class ServiceMethodsSpec extends FunSpec with Matchers {

  it("missing method") {
    val json = """
    {
      "name": "Api Doc",
      "base_url": "http://localhost:9000",

      "models": {
        "user": {
          "fields": [
            { "name": "id", "type": "long" }
          ]
        }
      },

      "resources": {
        "user": {
          "operations": [
            {
              "name": "id",
              "type": "long"
            }
          ]
        }
      }

    }
    """

    val validator = ServiceValidator(TestHelper.serviceConfig, json)
    validator.errors.mkString("") should be("Resource[user] /users Missing HTTP method")
  }

}
{'fraction_non_alphanumeric': 0.15149544863459039, 'fraction_numerical': 0.005201560468140442, 'mean_word_length': 1.653448275862069, 'pattern_counts': {'":': 24, '<': 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': '972163', 'n_tokens_mistral': 475, 'n_tokens_neox': 457, 'n_words': 97}