Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
governify-tester
Advanced tools
npm install governify-tester --save
npm install governify-cli -g
Import library in you code
var tester = require("governify-tester");
tester.doParallelRequestWithDuration("https://www.google.es/", "GET", 2, 1);
If you need the result, you can use the method then because it's a promise
tester.doParallelRequestWithDuration("https://www.google.es/", "GET", 2, 1).then(function(success) {
console.log(success);
});
lib.doParallelRequestWithDuration("https://jsonplaceholder.typicode.com/posts", "POST", 2, 1, "{ \"isagroup\": 1}");
You only test endpoint n times once.
tester.doOneStackOfRequest("http://google.es", "GET",2);
It is also possible to pass body and headers in the same order that the first one.
This one is special because not return any result a need that you stop it.
tester.doRequests("http://google.es", "GET", 2);
This options is strict. It only has certain types that will be described below. You must write in yaml format and you only have to indicate the path of file.
tester.doParallelRequestFromfile('./test.yaml');
testId: idoftest
type: long
url : https://twitter.com/
duration: 3 #seconds
count: 2 #number of times
method: GET
You have to define intervals a its duration necessarily.
testId: validation14
type: interval
url: http://localhost:3000/test
request:
method: POST
headers:
content-type: application/json
heade1: val
body:
id: MyID
value: XXX
tenants:
- id: t1
intervals:
- 8
- 5
duration: 1
- id: t2
intervals:
- 6
- 4
duration: 1
- id: t3
intervals:
- 1
- 8
duration: 1
- id: t4
intervals:
- 3
- 3
duration: 1
You need to write an array within the body
testId: validation12
type: random
url : https://jsonplaceholder.typicode.com/posts
duration: 4 #seconds
count: 10
request:
method: POST
headers:
content-type: application/json
body: #randomize in body
id:
- prueba
- prueba1
- prueba2
- prueba3
- prueba4
value:
- value
- value1
- value2
- value3
- value4
date:
- Date #currently date
testId: validation11
type: randomTemplate
url : https://jsonplaceholder.typicode.com/posts
duration: 4 #seconds
count: 10
request:
method: POST
randomFields:
id:
- prueba
- prueba1
- prueba2
- prueba3
- prueba4
value:
- value
- value1
- value2
- value3
- value4
date:
- Date #currently date
headers:
content-type: application/json
#randomize in body
body: >
{
"id": "{{id}}",
"value": "{{value}}",
"date": "{{date}}"
}
The version 0.0.2 is the latest stable version of governify-tester component. see release note for details.
For running:
FAQs
Testing endpoints via http requests
The npm package governify-tester receives a total of 0 weekly downloads. As such, governify-tester popularity was classified as not popular.
We found that governify-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.