Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.

SB-510 - add codecov reports #8

Merged
merged 5 commits into from
Jan 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: node
language: node_js
node_js: 8

install: yarn install
script:
- yarn run lint
- yarn test
- yarn run lint
- yarn test
after_script:
- bash <(curl -s https://codecov.io/bash) # Upload code coverage reports
14 changes: 14 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[SB-](https://jira-issue-number.com)

@sprucelabsai/engineers

## Description
A simple description of the pull request.

## Type
- [ ] Feature
- [ ] Bug
- [ ] Tech debt

## Steps to Test or Reproduce
Describe how to test the changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
[
{
"scope": "https://local-api.sprucebot.com:443",
"method": "PATCH",
"path": "/api/1.0/skills/482D8B56-5223-43BF-8E7F-011509B9968A?",
"body": {
"name": "Unit Test Skill - ",
"description": "This skill is for the tests that are run on pre-commit. ",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M459.148 439.554L304 177.394V32c0-4.418-3.578-8-8-8s-8 3.582-8 8h-64c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512h323.687c17.461 0 33.047-9.055 41.695-24.223 8.649-15.168 8.509-33.195-.39-48.223z\" fill=\"#b3f4ff\"/><path d=\"M256 32h-32c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512H256V32z\" fill=\"#53dcff\"/><path d=\"M431.617 455.851l-44.937-75.926a7.993 7.993 0 0 0-6.883-3.926H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066h323.687c5.898 0 10.961-2.941 13.906-8.082 2.924-5.128 2.877-10.984-.131-16.066z\" fill=\"#00e68c\"/><path d=\"M256 376H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066H256V376z\" fill=\"#00bebe\"/><path d=\"M280 264h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 304h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 344h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8z\" fill=\"#5c546a\"/><circle cx=\"288\" cy=\"432\" r=\"16\" fill=\"#fff\"/><circle cx=\"200\" cy=\"408\" r=\"16\" fill=\"#00e68c\"/><circle cx=\"344\" cy=\"416\" r=\"8\" fill=\"#fff\"/><circle cx=\"224\" cy=\"440\" r=\"8\" fill=\"#00e68c\"/><circle cx=\"152\" cy=\"424\" r=\"8\" fill=\"#00e68c\"/><path d=\"M304 0h-96c-8.837 0-16 7.163-16 16s7.163 16 16 16h96c8.837 0 16-7.163 16-16s-7.164-16-16-16z\" fill=\"#44bef1\"/></svg>",
"webhookUrl": "http://noop//hook.json",
"iframeUrl": "http://noop/",
"marketingUrl": "http://noop//marketing"
},
"status": 200,
"response": {
"id": "482d8b56-5223-43bf-8e7f-011509b9968a",
"name": "Unit Test Skill - ",
"slug": "unit-test",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M459.148 439.554L304 177.394V32c0-4.418-3.578-8-8-8s-8 3.582-8 8h-64c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512h323.687c17.461 0 33.047-9.055 41.695-24.223 8.649-15.168 8.509-33.195-.39-48.223z\" fill=\"#b3f4ff\"/><path d=\"M256 32h-32c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512H256V32z\" fill=\"#53dcff\"/><path d=\"M431.617 455.851l-44.937-75.926a7.993 7.993 0 0 0-6.883-3.926H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066h323.687c5.898 0 10.961-2.941 13.906-8.082 2.924-5.128 2.877-10.984-.131-16.066z\" fill=\"#00e68c\"/><path d=\"M256 376H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066H256V376z\" fill=\"#00bebe\"/><path d=\"M280 264h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 304h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 344h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8z\" fill=\"#5c546a\"/><circle cx=\"288\" cy=\"432\" r=\"16\" fill=\"#fff\"/><circle cx=\"200\" cy=\"408\" r=\"16\" fill=\"#00e68c\"/><circle cx=\"344\" cy=\"416\" r=\"8\" fill=\"#fff\"/><circle cx=\"224\" cy=\"440\" r=\"8\" fill=\"#00e68c\"/><circle cx=\"152\" cy=\"424\" r=\"8\" fill=\"#00e68c\"/><path d=\"M304 0h-96c-8.837 0-16 7.163-16 16s7.163 16 16 16h96c8.837 0 16-7.163 16-16s-7.164-16-16-16z\" fill=\"#44bef1\"/></svg>",
"description": "This skill is for the tests that are run on pre-commit. ",
"marketingUrl": "http://noop//marketing",
"iframeUrl": "http://noop/",
"webhookUrl": "http://noop//hook.json"
},
"rawHeaders": [
"Server",
"nginx/1.13.8",
"Date",
"Wed, 10 Jan 2018 22:47:06 GMT",
"Content-Type",
"application/json; charset=utf-8",
"Content-Length",
"1959",
"Connection",
"close",
"Access-Control-Allow-Origin",
"https://api.sprucebot.com",
"Access-Control-Allow-Headers",
"Content-Type,Authorization",
"Access-Control-Allow-Methods",
"GET,POST,PUT,PATCH,DELETE,OPTIONS",
"Access-Control-Allow-Credentials",
"true",
"Access-Control-Expose-Headers",
"lthr-jwt",
"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM\"",
"ETag",
"W/\"7a7-blAqPaeVhMVlHJRX8gxSqZCHKyE\"",
"Strict-Transport-Security",
"max-age=31536000"
]
},
{
"scope": "https://local-api.sprucebot.com:443",
"method": "GET",
"path": "/api/1.0/skills/482D8B56-5223-43BF-8E7F-011509B9968A?",
"body": "",
"status": 200,
"response": {
"id": "482d8b56-5223-43bf-8e7f-011509b9968a",
"name": "Unit Test Skill - ",
"slug": "unit-test",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M459.148 439.554L304 177.394V32c0-4.418-3.578-8-8-8s-8 3.582-8 8h-64c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512h323.687c17.461 0 33.047-9.055 41.695-24.223 8.649-15.168 8.509-33.195-.39-48.223z\" fill=\"#b3f4ff\"/><path d=\"M256 32h-32c0-4.418-3.578-8-8-8s-8 3.582-8 8v145.394L52.852 439.554c-8.898 15.027-9.039 33.055-.391 48.223S76.695 512 94.156 512H256V32z\" fill=\"#53dcff\"/><path d=\"M431.617 455.851l-44.937-75.926a7.993 7.993 0 0 0-6.883-3.926H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066h323.687c5.898 0 10.961-2.941 13.906-8.082 2.924-5.128 2.877-10.984-.131-16.066z\" fill=\"#00e68c\"/><path d=\"M256 376H132.203a7.993 7.993 0 0 0-6.883 3.926l-44.93 75.926c-3.008 5.078-3.062 10.934-.133 16.082 2.938 5.125 8 8.066 13.898 8.066H256V376z\" fill=\"#00bebe\"/><path d=\"M280 264h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 304h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8zM280 344h-48c-4.422 0-8-3.582-8-8s3.578-8 8-8h48c4.422 0 8 3.582 8 8s-3.578 8-8 8z\" fill=\"#5c546a\"/><circle cx=\"288\" cy=\"432\" r=\"16\" fill=\"#fff\"/><circle cx=\"200\" cy=\"408\" r=\"16\" fill=\"#00e68c\"/><circle cx=\"344\" cy=\"416\" r=\"8\" fill=\"#fff\"/><circle cx=\"224\" cy=\"440\" r=\"8\" fill=\"#00e68c\"/><circle cx=\"152\" cy=\"424\" r=\"8\" fill=\"#00e68c\"/><path d=\"M304 0h-96c-8.837 0-16 7.163-16 16s7.163 16 16 16h96c8.837 0 16-7.163 16-16s-7.164-16-16-16z\" fill=\"#44bef1\"/></svg>",
"description": "This skill is for the tests that are run on pre-commit. ",
"marketingUrl": "http://noop//marketing",
"iframeUrl": "http://noop/",
"webhookUrl": "http://noop//hook.json"
},
"rawHeaders": [
"Server",
"nginx/1.13.8",
"Date",
"Wed, 10 Jan 2018 22:47:06 GMT",
"Content-Type",
"application/json; charset=utf-8",
"Content-Length",
"1959",
"Connection",
"close",
"Access-Control-Allow-Origin",
"https://api.sprucebot.com",
"Access-Control-Allow-Headers",
"Content-Type,Authorization",
"Access-Control-Allow-Methods",
"GET,POST,PUT,PATCH,DELETE,OPTIONS",
"Access-Control-Allow-Credentials",
"true",
"Access-Control-Expose-Headers",
"lthr-jwt",
"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM\"",
"ETag",
"W/\"7a7-blAqPaeVhMVlHJRX8gxSqZCHKyE\"",
"Strict-Transport-Security",
"max-age=31536000"
]
},
{
"scope": "https://local-api.sprucebot.com:443",
"method": "GET",
"path": "/api/1.0/skills/482D8B56-5223-43BF-8E7F-011509B9968A/data?&limit=200",
"body": "",
"status": 200,
"response": [
{
"id": "41a5e688-f5da-4982-8d24-03e1129f4572",
"createdAt": "2018-01-10T22:46:57.493Z",
"updatedAt": "2018-01-10T22:46:57.493Z",
"key": "lucky-numbers",
"value": [
1,
2,
3
],
"LocationId": "1975559c-e071-4198-8ab3-eccbeb00e1d0",
"SkillId": "482d8b56-5223-43bf-8e7f-011509b9968a",
"UserId": null
}
],
"rawHeaders": [
"Server",
"nginx/1.13.8",
"Date",
"Wed, 10 Jan 2018 22:47:06 GMT",
"Content-Type",
"application/json; charset=utf-8",
"Content-Length",
"278",
"Connection",
"close",
"Access-Control-Allow-Origin",
"https://api.sprucebot.com",
"Access-Control-Allow-Headers",
"Content-Type,Authorization",
"Access-Control-Allow-Methods",
"GET,POST,PUT,PATCH,DELETE,OPTIONS",
"Access-Control-Allow-Credentials",
"true",
"Access-Control-Expose-Headers",
"lthr-jwt",
"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM\"",
"ETag",
"W/\"116-NOvBrr6DdMABQRKCKr6H8rQWjSU\"",
"Strict-Transport-Security",
"max-age=31536000"
]
},
{
"scope": "https://local-api.sprucebot.com:443",
"method": "DELETE",
"path": "/api/1.0/skills/482D8B56-5223-43BF-8E7F-011509B9968A/data/41a5e688-f5da-4982-8d24-03e1129f4572?",
"body": "",
"status": 200,
"response": {
"status": "success"
},
"rawHeaders": [
"Server",
"nginx/1.13.8",
"Date",
"Wed, 10 Jan 2018 22:47:06 GMT",
"Content-Type",
"application/json; charset=utf-8",
"Content-Length",
"20",
"Connection",
"close",
"Access-Control-Allow-Origin",
"https://api.sprucebot.com",
"Access-Control-Allow-Headers",
"Content-Type,Authorization",
"Access-Control-Allow-Methods",
"GET,POST,PUT,PATCH,DELETE,OPTIONS",
"Access-Control-Allow-Credentials",
"true",
"Access-Control-Expose-Headers",
"lthr-jwt",
"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM\"",
"ETag",
"W/\"14-Y53wuE/mmbSikKcT/WualL1N65U\"",
"Strict-Transport-Security",
"max-age=31536000"
]
},
{
"scope": "https://local-api.sprucebot.com:443",
"method": "POST",
"path": "/api/1.0/skills/482D8B56-5223-43BF-8E7F-011509B9968A/data?",
"body": {
"userId": "78245981-5022-49a7-b2f2-6ac687e0f3d1",
"key": "lucky-numbers",
"value": [
1,
2,
3
]
},
"status": 403,
"response": {
"status": "failure",
"code": "SKILL_UNAUTHORIZED",
"reason": "The skill does not have permission to perform this action.",
"friendlyReason": "This skill cannot do what it's trying to do."
},
"rawHeaders": [
"Server",
"nginx/1.13.8",
"Date",
"Wed, 10 Jan 2018 22:47:06 GMT",
"Content-Type",
"application/json; charset=utf-8",
"Content-Length",
"182",
"Connection",
"close",
"Access-Control-Allow-Origin",
"https://api.sprucebot.com",
"Access-Control-Allow-Headers",
"Content-Type,Authorization",
"Access-Control-Allow-Methods",
"GET,POST,PUT,PATCH,DELETE,OPTIONS",
"Access-Control-Allow-Credentials",
"true",
"Access-Control-Expose-Headers",
"lthr-jwt",
"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM\"",
"ETag",
"W/\"b6-w+irQ8jv6xgbIzAX2eYJaMRzyEI\""
]
}
]
Loading