test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsExpectedStrings

func ContainsExpectedStrings(testStrings ...string) bool

ContainsExpectedStrings - expects the first half of the strings to contain the expected strings and the second half to be those that are being compared against. Returns true if all the strings are found and false if any mis-matches are found.

The order does not matter, only that each validation string is found and paired.  Example:
"this", "that", "other", "that", "other", "this" -  will return true because each 2nd half of the strings is found in the first half
"this", "that", "other", "that", "this", "this" - will return false because one of the strings was not found

func SimpleDelete

func SimpleDelete(uri string) error

SimpleDelete - Tests an endpoint and returns an error if unsuccessful

func SimpleGet

func SimpleGet(uri string) (string, error)

SimpleGet -Returns the body of an http get request with error if appropriate

func SimplePatch

func SimplePatch(uri string, jsonBytes []byte) error

SimplePatch - Tests an endpoint and returns an error if unsuccessful

func SimplePost

func SimplePost(uri string, jsonBytes []byte) (string, error)

SimplePost - Returns the resource URI of a newly created resource per the location header

func SimplePut

func SimplePut(uri string, jsonBytes []byte) error

SimplePut - Tests an endpoint and returns an error if unsuccessful

Types

This section is empty.

Jump to

Keyboard shortcuts

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