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
esphome: | |
name: mmwave | |
friendly_name: mmwave | |
esp32: | |
board: esp32doit-devkit-v1 | |
framework: | |
type: arduino | |
# Enable logging |
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
app.get("/spacetasks", (req, res, next) => { | |
res.json([ | |
"wash the spaceship", | |
"clean the space kitchen", | |
"look at the stars", | |
"repair my space suit" | |
]) | |
}) |
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
--- | |
# UPDATE THIS SECRET BEFORE APPLYING | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: ddclient-secret | |
data: | |
ddclient.conf: | | |
protocol=cloudflare, \ | |
zone=meowsergirl.com, \ |
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
--- | |
# The main bit: the Deployment of our container. | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ddclient | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
progressDeadlineSeconds: 600 |
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
var secret = require('./secrets.js'); | |
module.exports = { | |
"collections": [ | |
{ | |
"from": "swagger", | |
"to": "postman-collection", | |
"name": "Swagger Petstore", | |
"collection_uid": "1559979-81f30228-c4e1-8a05-948a-da9cc9bd07db", | |
"collection_id": "81f30228-c4e1-8a05-948a-da9cc9bd07db" |
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
var fs = require('fs'), | |
Converter = require('swagger2-postman2-converter'), | |
request = require('request'), | |
config = require('./config.js'); | |
// ############################################### | |
// define functions to handle conversion and update collection | |
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
var fs = require('fs'), | |
Converter = require('swagger2-postman2-converter'); | |
function handleConversion(originalFileName, newFileName) { | |
// read the local swagger file | |
var swaggerObject = JSON.parse( | |
fs.readFileSync(originalFileName, 'utf8') | |
); |
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
var express = require('express'); | |
var fs = require('fs'); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
app.use(bodyParser.urlencoded({ extended: true })); | |
app.use(bodyParser.json()); // Body parser use JSON data | |
app.post('/launches', function(req, res) { |
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
language: node_js | |
node_js: | |
- "8.2.1" | |
install: | |
- npm install newman | |
before_script: | |
- node --version | |
- npm --version |
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
// Load the JSON Schema | |
const customerSchema = JSON.parse(environment.customerSchema); | |
// Test whether the response matches the schema | |
var customer = JSON.parse(responseBody); | |
tests["Customer is valid"] = tv4.validate(customer, customerSchema); |
NewerOlder