test

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 3

README

Testing

This directory contains misc testing scripts, tools, etc.

Running Caddy on development machine

This can be used to test TLS support for various things like wss:// upstream URIs, etc.

  • configure one SIOT instance (the upstream) to run on port 8081
  • cd <this directory>
  • install caddy and mkcert (Arch has packages for both)
  • mkcert -install
  • mkcert siottest.com
  • sudo vi /etc/hosts
    • 127.0.0.1 siottest.com
  • sudo caddy run -watch
  • start another SIOT instance (the downstream) and configure upstream with URL set to wss://siottest.com -- it will not connect to SIOT instance running on port 8081.

Documentation

Overview

Package test contains utilities and end-to-end tests that don't fit elsewhere

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server() (*nats.Conn, data.NodeEdge, func(), error)

Server starts a test server and returns a function to stop it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL