Skip to content

Commit

Permalink
update variables for category
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Oct 7, 2024
1 parent f278b4d commit b661891
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 50 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci-postman-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Build and Postman Tests
on:
workflow_dispatch:
inputs:
Iterations:
description: 'Iteration count for tests:'
required: false
default: 1
type: number
Query:
description: 'Search parameter for all API request:'
required: true
Expand Down Expand Up @@ -134,7 +129,6 @@ jobs:
- name: Run postman tests
run: |
newman run postman-tests.json \
--iteration-count ${{ github.event.inputs.Iterations }} \
--env-var "baseUrl=${{ github.event.inputs.Url }}" \
--env-var "query=${{ github.event.inputs.Query }}" \
--env-var "queryAllPage=${{ github.event.inputs.queryAllPage }}" \
Expand Down
48 changes: 26 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions" src="https://img.shields.io/badge/Actions-%230075A8.svg?style=for-the-badge&logo=githubactions&logoColor=white"></a>
<br>
<br>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-docker-hub.yml?logo=GitHub-Actions&label=CI+Docker+Hub"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-docker-hub.yml?logo=GitHub-Actions&label=CD+Docker+Hub"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-vercel.yml?logo=Vercel&label=CD+Vercel"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/ci-postman-tests.yml?logo=Postman&label=Postman+Tests"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/ci-postman-tests.yml?logo=Postman&label=CI+Postman+Tests"></a>
<a href="https://app.swaggerhub.com/apis-docs/Lifailon/TorAPI"><img title="Swagger"src="https://img.shields.io/swagger/valid/3.0?specUrl=https%3A%2F%2Fraw.githubusercontent.com%2FLifailon%2FTorAPI%2Fmain%2Fswagger%2Fswagger.yaml&logo=Swagger&label=Swagger"></a>
<br>
<a href="https://hub.docker.com/r/lifailon/torapi"><img title="Docker"src="https://img.shields.io/docker/image-size/lifailon/torapi?&color=blue&logo=Docker&label=Docker+Image"></a>
Expand Down Expand Up @@ -237,29 +237,33 @@ To run tests locally:
npm install -g newman
newman run postman-tests.json \
--iteration-count 1 \
--env-var "baseUrl=http://localhost:8443" \
--env-var "query=The Rookie" \
--env-var "queryAllPage=test" \
--env-var "baseUrl=http://localhost:8443"
--env-var "categoryRuTracker=1605" \
--env-var "categoryKinozal=20" \
--env-var "categoryRuTor=10" \
--env-var "categoryNoNameClub=1318"
...
┌─────────────────────────┬────────────────────┬───────────────────
│ │ executed │ failed │
├─────────────────────────┼────────────────────┼───────────────────
│ iterations │ 1 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ requests │ 29 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ test-scripts │ 75 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ prerequest-scripts │ 62 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ assertions │ 135 │ 0 │
├─────────────────────────┴────────────────────┴───────────────────
│ total run duration: 30.6s
├──────────────────────────────────────────────────────────────────
│ total data received: 1.58MB (approx)
├──────────────────────────────────────────────────────────────────
│ average response time: 1012ms [min: 2ms, max: 6.5s, s.d.: 1507ms] │
└──────────────────────────────────────────────────────────────────
┌─────────────────────────┬────────────────────┬───────────────────┐
│ │ executed │ failed │
├─────────────────────────┼────────────────────┼───────────────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ requests │ 38 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ test-scripts │ 90 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ prerequest-scripts │ 77 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ assertions │ 153 │ 0 │
├─────────────────────────┴────────────────────┴───────────────────┤
│ total run duration: 1m 18s
├──────────────────────────────────────────────────────────────────┤
│ total data received: 1.75MB (approx) │
├──────────────────────────────────────────────────────────────────┤
│ average response time: 1960ms [min: 3ms, max: 18.4s, s.d.: 3.6s] │
└──────────────────────────────────────────────────────────────────┘
```

---
Expand Down
48 changes: 26 additions & 22 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions" src="https://img.shields.io/badge/Actions-%230075A8.svg?style=for-the-badge&logo=githubactions&logoColor=white"></a>
<br>
<br>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-docker-hub.yml?logo=GitHub-Actions&label=CI+Docker+Hub"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-docker-hub.yml?logo=GitHub-Actions&label=CD+Docker+Hub"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/cd-vercel.yml?logo=Vercel&label=CD+Vercel"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/ci-postman-tests.yml?logo=Postman&label=Postman+Tests"></a>
<a href="https://github.com/Lifailon/TorAPI/actions"><img title="Actions"src="https://img.shields.io/github/actions/workflow/status/Lifailon/TorAPI/ci-postman-tests.yml?logo=Postman&label=CI+Postman+Tests"></a>
<a href="https://app.swaggerhub.com/apis-docs/Lifailon/TorAPI"><img title="Swagger"src="https://img.shields.io/swagger/valid/3.0?specUrl=https%3A%2F%2Fraw.githubusercontent.com%2FLifailon%2FTorAPI%2Fmain%2Fswagger%2Fswagger.yaml&logo=Swagger&label=Swagger"></a>
<br>
<a href="https://hub.docker.com/r/lifailon/torapi"><img title="Docker"src="https://img.shields.io/docker/image-size/lifailon/torapi?&color=blue&logo=Docker&label=Docker+Image"></a>
Expand Down Expand Up @@ -237,29 +237,33 @@ npm start -- --test --q "The Rookie"
npm install -g newman
newman run postman-tests.json \
--iteration-count 1 \
--env-var "baseUrl=http://localhost:8443" \
--env-var "query=The Rookie" \
--env-var "queryAllPage=test" \
--env-var "baseUrl=http://localhost:8443"
--env-var "categoryRuTracker=1605" \
--env-var "categoryKinozal=20" \
--env-var "categoryRuTor=10" \
--env-var "categoryNoNameClub=1318"
...
┌─────────────────────────┬────────────────────┬───────────────────
│ │ executed │ failed │
├─────────────────────────┼────────────────────┼───────────────────
│ iterations │ 1 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ requests │ 29 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ test-scripts │ 75 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ prerequest-scripts │ 62 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────
│ assertions │ 135 │ 0 │
├─────────────────────────┴────────────────────┴───────────────────
│ total run duration: 30.6s
├──────────────────────────────────────────────────────────────────
│ total data received: 1.58MB (approx)
├──────────────────────────────────────────────────────────────────
│ average response time: 1012ms [min: 2ms, max: 6.5s, s.d.: 1507ms] │
└──────────────────────────────────────────────────────────────────
┌─────────────────────────┬────────────────────┬───────────────────┐
│ │ executed │ failed │
├─────────────────────────┼────────────────────┼───────────────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ requests │ 38 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ test-scripts │ 90 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ prerequest-scripts │ 77 │ 0 │
├─────────────────────────┼────────────────────┼───────────────────┤
│ assertions │ 152 │ 0 │
├─────────────────────────┴────────────────────┴───────────────────┤
│ total run duration: 1m 13.9s
├──────────────────────────────────────────────────────────────────┤
│ total data received: 1.75MB (approx) │
├──────────────────────────────────────────────────────────────────┤
│ average response time: 1856ms [min: 3ms, max: 16.5s, s.d.: 3.4s] │
└──────────────────────────────────────────────────────────────────┘
```

---
Expand Down

0 comments on commit b661891

Please sign in to comment.