Testing suite to test CSW endpoints
Instructions
- Install the suite:
# first, get the iso from http://releases.ubuntu.com/ | |
# make working dir hierarchy in /tmp (you'll need enough ram for this) | |
sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project} | |
sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso | |
sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash | |
sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive | |
# customize the live fs with systemd-nspawn (a better chroot) | |
sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive |
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
cat <<END | |
Usage: `basename $0` <action> | |
all: build all components | |
te: build teamengine | |
csw3: build ets-cat30 | |
csw2: build ets-csw202 |
Title: | |
pycsw Graduates OSGeo Incubation | |
News Date: | |
15 Mar 2015 | |
Related URL: | |
pycsw [1] | |
OSGeo Incubator [2] |
Based on copy of https://gist.github.com/kalxas/5ab6237b4163b0fdc930 on 20 June 2014 12:27 UTC |
Create virtualenv:
$ virtualenv owslib_test
CSW (Catalogue Service for the Web) is an `OGC (Open Geospatial Consortium)`_ specification that defines common interfaces to discover, browse, and query metadata about data, services, and other potential resources.
[server] | |
url=http://uat-catalog-fe-data.reisys.com/csw-all | |
mimetype=application/xml; charset=UTF-8 | |
encoding=UTF-8 | |
language=en-US | |
maxrecords=10 | |
#loglevel=DEBUG | |
#logfile=/tmp/pycsw.log | |
profiles=apiso | |
#LiveCD on the commandline | |
#https://help.ubuntu.com/community/LiveCDCustomization | |
#DIR=`dirname ${0}` | |
#VERSION=`cat "$DIR"/../VERSION.txt` | |
VERSION="6.0beta6" | |
PACKAGE_NAME="osgeo-live" | |
ISO_NAME="${PACKAGE_NAME}-${VERSION}" | |
sudo apt-get install squashfs-tools genisoimage |