Skip to content

Commit

Permalink
Run Postman Collection Once All Docker Images are built (OWASP#50)
Browse files Browse the repository at this point in the history
* Added Postman collection and env variables
* Update ci.yml to run postman collections

Co-authored-by: Roshan Piyush <[email protected]>
  • Loading branch information
mathew-jose and piyushroshan authored May 12, 2022
1 parent f80ad2e commit 30b3695
Show file tree
Hide file tree
Showing 4 changed files with 2,114 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@ jobs:

- name: Env seen
run: env

- name: Run crAPI using built images
run: VERSION=${{ env.TAG_NAME }} docker-compose -f deploy/docker/docker-compose.yml --compatibility up -d

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install newman
run: npm install -g newman

- name: Run Postman Collection
run: (newman run "./postman_collections/crAPI Accepted.postman_collection.json" -e ./postman_collections/Crapi.postman_environment.json) || true

- name: Build crapi-identity all platforms and conditionally push to Docker Hub
uses: docker/build-push-action@v2
Expand Down Expand Up @@ -199,4 +213,3 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max


23 changes: 23 additions & 0 deletions postman_collections/Crapi.postman_environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "d72c78a4-a99a-4413-88f6-0a3bb4cdbc1c",
"name": "Crapi",
"values": [{
"key": "url",
"value": "http://127.0.0.1:8888",
"enabled": true
},
{
"key": "url_mail",
"value": "http://127.0.0.1:8025",
"enabled": true
},
{
"key": "video_file",
"value": "./postman_collections/car.mp4",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2022-05-07T14:12:58.459Z",
"_postman_exported_using": "Postman/9.17.2"
}
Binary file added postman_collections/car.mp4
Binary file not shown.
Loading

0 comments on commit 30b3695

Please sign in to comment.