Tool | Description |
---|---|
Postman | To develop and test API’S |
newman | CLI to Postman |
newman-reporter-junitfull | JUnit reporter for Newman |
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
exports.go = function(req, res){ | |
let js2xmlparser = require("js2xmlparser"); | |
let parser = require('xml2json'); | |
let request = require('request'); | |
let codfat = req.body.codfat; //Codigo da fatura | |
console.log("BUSCANDO LINHA DIGITAVEL PARA FATURA ->> " + codfat); | |
let options = { |
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
{ | |
"Envelope": { | |
"Body": { | |
"consultarDebitosResponse": { | |
"consultarDebitosReturn": { | |
"_href": "#id0" | |
}, | |
"_xmlns:ns1": "http://ws.control.cliente.cdtr.web.bradesco.com.br", | |
"_soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/", | |
"__prefix": "ns1" |
Stage | Task | Command |
---|---|---|
1 | npm | install newman -g |
2 | npm | install -g newman-reporter-junitfull |
3 | Command Line | **newman run e2e_collection.json --reporters cli,junit --reporter-junit-export junitReport.xml** |
4 | Publish Test Results | **/*.xml |
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
import { Presto, PrestoQueryParams, PrestoResponse } from "presto-ts"; | |
const prestoStatusUpdate = (prestoNotification: PrestoResponse): PrestoResponse => { | |
console.log("NEW PRESTO QUERY STATUS") | |
console.log(prestoNotification) | |
return prestoNotification; | |
} | |
const errorPresto = (error: Error) => { | |
console.error(error) |
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
{ | |
"patient_data": { | |
"id": 964649461164164, | |
"name": "Marsellus Wallace", | |
"age": 55 | |
}, | |
"date_range": { | |
"from": "2020-10-20", | |
"to": "2020-10-22" | |
}, |
I know that are a lot of frameworks which promise to solve this with the "monorepo" concept, but I want to demonstrate how to achieve this without be locked-in in a framework or automation. It's is possible to reach it with a good decoupled code and Docker.
I created and published a repo to demonstrate my vision about a single repository with multiple projects.
Follow the flow:
Git clone this repo