generateFiles

package
v0.0.0-...-e7e71ae Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: MIT Imports: 19 Imported by: 0

README

Generate Files Tests

Getting started

This package will test a sunny day scenario of the backend and api services.

Make sure all API's have access to the following environment variables before starting the services.

export MONGODB_DATABASE=test
export MONGODB_FILTERS_DATABASE=test
export MONGODB_IMPORTS_DATABASE=test

The endToEndTest can be run with or without decryption/encryption by exporting the ENCRYPTION_DISABLED environment variable to true or false respectively.

This environment variable will need to be set for backend services if set to false.

To run vault:

brew install vault vault server -dev

Services and software

The following software needs to be running for acceptance tests to be able to pass:

vault
mongo db
zookeeper
kafka
neo4j
elasticsearch (5.x)
recipe API
import API
dataset API
filter API - Not yet
dimension extractor
dimension import
observation extractor
observation importer
import tracker
import reporter
dataset exporter
xlsx dataset exporter
downloads service
auth api stub (mimics zebedee)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidPOSTCreateFilterJSON

func GetValidPOSTCreateFilterJSON(datasetID, edition, version string) string

Types

type Client

type Client interface {
	SDKClient
	CryptoClient
}

type ClientImpl

type ClientImpl struct {
	SDKClient
	CryptoClient
}

type CryptoClient

type CryptoClient interface {
	GetObjectWithPSK(*s3.GetObjectInput, []byte) (*s3.GetObjectOutput, error)
	PutObjectWithPSK(*s3.PutObjectInput, []byte) (*s3.PutObjectOutput, error)
}

type SDKClient

type SDKClient interface {
	GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
	PutObject(*s3.PutObjectInput) (*s3.PutObjectOutput, error)
	GetObjectWithContext(aws.Context, *s3.GetObjectInput, ...reqst.Option) (*s3.GetObjectOutput, error)
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store provides file storage via S3.

Jump to

Keyboard shortcuts

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