Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/lkaemmerling/hetzner-cloud-api-mock

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/lkaemmerling/hetzner-cloud-api-mock

  • v2.1.0+incompatible
  • Source
  • Go
  • Socket score

Version published
Created
Source

[Unofficial] Hetzner Cloud API Mock

This mock allows developers to test against the Hetzner Cloud API without creating real resources or having a real account on the Hetzner Cloud. It uses the API Blueprint from the documentation.

Differences to the first version:

  • Rewrite in go (instead of js)
  • HTTP header validation (Authorization and Content-Type)
  • Body parameter validation (When the docs require a number we validate if the request contains a number)
  • Using drafter (c++ api blueprint parser) directly instead of using a wrapper

The mock is a complete rewrite of https://github.com/LKDevelopment/hetzner-cloud-api-mock.

Specs:

  • Drafter v3.x
  • Go 1.12

How to use?

To start the mock as a container listing to port 8080 run:

docker run -d -p 8080:8080 lkdevelopment/hetzner-cloud-api-mock:latest

Notice

This is an unofficial tool, that downloads the information about the lastest stable api from the hetzner cloud and mocks the results shown in the documentation. It is just a really "stupid" mock server, that does not contain any business logic from the Hetzner Cloud.

FAQs

Package last updated on 09 Jan 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc