-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f30b54
commit 56212c3
Showing
12 changed files
with
601 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
src/components/config/__tests__/grouped.postman_collection.json
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
src/components/config/__tests__/mock_files/basic-postman_collection-v2.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "7b82602a-a95c-4b91-b783-e7e9251a300a", | ||
"name": "Monika Monitor Collection", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "[GitHub API] Hyperjump Repos", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": "https://api.github.com/users/hyperjumptech/repos" | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "[GitHub API] Hyperjump", | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Authorization", | ||
"value": "any", | ||
"type": "default" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"any\": \"any\"\n}\n", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": "https://api.github.com/users/hyperjumptech" | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
src/components/config/__tests__/mock_files/basic-postman_collection-v2.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "7b82602a-a95c-4b91-b783-e7e9251a300a", | ||
"name": "Monika Monitor Collection", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "[GitHub API] Hyperjump Repos", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.github.com/users/hyperjumptech/repos", | ||
"protocol": "https", | ||
"host": ["api", "github", "com"], | ||
"path": ["users", "hyperjumptech", "repos"] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "[GitHub API] Hyperjump", | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Authorization", | ||
"value": "any", | ||
"type": "default" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"any\": \"any\"\n}\n", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "https://api.github.com/users/hyperjumptech", | ||
"protocol": "https", | ||
"host": ["api", "github", "com"], | ||
"path": ["users", "hyperjumptech"] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
28 changes: 28 additions & 0 deletions
28
src/components/config/__tests__/mock_files/expected.postman-basic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
probes: | ||
- id: '[GitHub API] Hyperjump Repos' | ||
name: '[GitHub API] Hyperjump Repos' | ||
requests: | ||
- url: https://api.github.com/users/hyperjumptech/repos | ||
method: GET | ||
headers: {} | ||
body: {} | ||
timeout: 10000 | ||
incidentThreshold: 5 | ||
recoveryThreshold: 5 | ||
alerts: [] | ||
- id: '[GitHub API] Hyperjump' | ||
name: '[GitHub API] Hyperjump' | ||
requests: | ||
- url: https://api.github.com/users/hyperjumptech | ||
method: GET | ||
headers: | ||
Authorization: any | ||
body: | ||
any: any | ||
timeout: 10000 | ||
incidentThreshold: 5 | ||
recoveryThreshold: 5 | ||
alerts: [] | ||
notifications: | ||
- id: default | ||
type: desktop |
Oops, something went wrong.