Skip to content

Commit

Permalink
travis-CI only master
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Nov 29, 2018
1 parent fc5b337 commit df3c1ee
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -55,8 +55,9 @@ notifications:
email: true

branches:
except:
- /^v\d/
only:
- master
- dev

before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
Expand Down
55 changes: 54 additions & 1 deletion source/tmpl/postman.json
Expand Up @@ -336,7 +336,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n\t\"id\": 1,\n \"name\": \"Updated Google Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 60,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}"
"raw": "{\n\t\"id\": 1,\n \"name\": \"Updated Google Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 60,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0,\n \"check_interval\": 60\n}"
},
"url": {
"raw": "{{endpoint}}/api/services/1",
Expand All @@ -352,6 +352,59 @@
},
"response": []
},
{
"name": "Reorder Services",
"event": [
{
"listen": "test",
"script": {
"id": "b5a67a19-fd08-40b0-a961-3e9474ab78c6",
"exec": [
"pm.test(\"Reorder Services\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.length).to.eql(4);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{api_key}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "[{\"service\": 1, \"order\": 4},{\"service\": 2, \"order\": 3},{\"service\": 3, \"order\": 2},{\"service\": 4, \"order\": 1}]"
},
"url": {
"raw": "{{endpoint}}/api/services/reorder",
"host": [
"{{endpoint}}"
],
"path": [
"api",
"services",
"reorder"
]
}
},
"response": []
},
{
"name": "Delete Service",
"event": [
Expand Down

0 comments on commit df3c1ee

Please sign in to comment.