[
  {
    "comment": "list all available compute clouds",
    "request": { "uri": "me/clouds?type=compute" },
    "response": {
      "store": "computeClouds",
      "check": [
        {"condition": "json.length == 3"}
      ]
    }
  },

  {
    "comment": "list all available compute regions",
    "request": { "uri": "me/regions" },
    "response": {
      "store": "regions",
      "check": [
        // ensure we have several regions
        {"condition": "json.length > 5"}
      ]
    }
  },

  {
    "comment": "list closest regions",
    "request": { "uri": "me/regions/closest" },
    "response": {
      "check": [
        // ensure we have the same number of regions and that first is closer than last
        {"condition": "json.length === regions.length"},
        {"condition": "json[0].getDistance() < json[json.length-1].getDistance()"}
      ]
    }
  }
]