Git Product home page Git Product logo

tds_ogc_services_check's Introduction

THREDDS Data Server OGC Services check

Utility to test OGC endpoints from a target THREDDS Data server catalogue developed to support work for the ESA CCI Open Data Portal

Releases

  • 0.4.0
    • Rework to allow non-existent catalogue entries and entries with no WMS or WCS entries at all
  • 0.3.1
    • Fix wms_test nagios test script
  • 0.3.0
    • Added unit tests for WMS and WCS - takes a catalogue URI as input and creates tests for each endpoint found
  • 0.2.4
    • Fix for GetCapabilities check - don't try to parse response if gives 500 error
  • 0.2.3
    • added additional summary stats
  • 0.2.2
    • cleaned up, removed CSV output option, made pip installable
  • 0.1.0
    • initial release. Checks WMS endpoints only, may be extended at a later date to include WCS also.

Prerequisites

This has been developed and tested for Python 3.5.

Installation

Installation can be performed using pip:

pip install git+https://github.com/cedadev/ceda-unittest-nagios-wrapper git+https://github.com/cedadev/slack-logging-handler git+https://github.com/cedadev/tds_ogc_services_check

Nb. ordering for picking up other dependent packages from CEDA Github.

Running

There are three different scripts that can be run.

Scan TDS Catalogue and find and test WMS and WCS services

This script crawls the whole catalogue and carries out basic tests on all the WMS and WCS endpoints it finds. It reports using logging and outputs a summary of successes and failures at the end.

ceda_tds_ogc_scan <URI to TDS catalogue path to scan> (<list of catalogue entries to test>|<test n random sample of entries from the catalogue>)

Test all entries in a catalogue:

ceda_tds_ogc_scan http://my-thredds-data-server/catalog.xml

Test 5 entries at random:

ceda_tds_ogc_scan http://my-thredds-data-server/catalog.xml 5

Run tests on specific catalogue references

ceda_tds_ogc_scan http://my-thredds-data-server/catalog.xml http://my-thredds-data-server/catalogRef1.xml http://my-thredds-data-server/catalogRef2.xml

Nagios + Slack scripts

There are two scripts written for running in Nagios. They give an output message and the appropriate Nagios exit code depending on the outcome of the test. These also have capability for writing to a Slack channel given the correct Slack API hooks.

Set the environment variable CEDA_TDS_OGC_SCAN_CATALOG_URI to configure the THREDDS catalogue to be queried.

Test WMS endpoints:

cci_odp_wms_test

Test WCS endpoints:

cci_odp_wcs_test

tds_ogc_services_check's People

Contributors

philipkershaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.