# README
Description
This directory contains pinner
's integration tests.
# Functions
Contains checks whether the given slice contains the given element.
Context returns a context with default timeout.
DBTestCredentials sets the environment variables to what we have defined in Makefile.
LoadTestConfig temporarily replaces environment variables with their test values, loads the configuration with these test values and then restores the original environment.
NewDatabase returns a new DB connection based on the passed parameters.
NewDiscardLogger returns a new logger that sends all output to io.Discard.
NewTester creates and starts a new Tester service.
RandomSkylink generates a random skylink.
SanitizeName sanitizes the input for all kinds of unwanted characters and replaces those with underscores.
# Variables
ServerName is what we'll use for ServerName during testing.