Skip to content

ldodds/lda-accept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LINKED DATA ACCEPTANCE

Acceptance test suite for the Linked Data API

Overview

This project contains a set of acceptance tests for the Linked Data API specification:

purl.org/linked-data/api/spec

The tests are implemented in RSpec and are intended to be run against a live deployment of the API.

The goals are to:

  • Help plug any gaps in the spec

  • Provide some basic tests that can be used to check the capabilities of any arbitrary deployment

  • Provide some detailed tests that run against a known dataset and configuration to exercise a specific API implementation

  • Provide a jumping off point for testing other deployments

The project is a work in progress so subsequent to sudden and violent changes :)

Installation

The tests are implemented using RSpec. You’ll need to have Ruby 1.8, Ruby Gems, and have installed the following gems:

RSpec:

  • Ruby Behaviour Driven Test Framework

  • rspec.info/

Rest Client

JSON

Siren

Hopefully the following should handle all of that and any dependencies:

sudo gem install rspec rest-client json siren

Running the Tests

The tests are organised into several sub-directories.

mountain

  • test suite for mountain climbing data used in Puelia Implementation

education

  • test suite for education.data.gov.uk API

To install the test config, copy the config.ttl to the relevant location in your implementation.

To run the tests do:

spec dir/name-of-spec-file.spec

To override the location of the Linked Data server, set the server environment parameter

About

Linked Data API Acceptance Tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published