datasetAPI

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: 8 Imported by: 0

README

Dataset API Tests

Getting started

This package will test all endpoints that exist within the Dataset API when running in publishing subnet.

Services and software

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

mongodb
neo4j
zookeeper
kafka
dp-dataset-api
dp-auth-api-stub (mimics zebedee authentication)

dp-dataset-api should be run with make acceptance-publishing

Note

If an endpoint is only available on publishing, remember to add a test to web/datasetAPI/hidden_endpoints_test.go to check request returns 404 in web subnet

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidPublishedEditionData

func ValidPublishedEditionData(datasetID, editionID, edition string) bson.M

ValidPublishedEditionData returns an example bson object for a published edition resource

func ValidPublishedWithUpdatesDatasetData

func ValidPublishedWithUpdatesDatasetData(datasetID string) bson.M

ValidPublishedWithUpdatesDatasetData returns an example of a published dataset

func ValidUnpublishedEditionData

func ValidUnpublishedEditionData(datasetID, editionID, edition string) bson.M

Types

This section is empty.

Jump to

Keyboard shortcuts

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