PRIVATE REPOSITORY - Contains Server Credentials
This repository contains live server integration tests and validation demos for the ogc-client-CSAPI library implementation.
This repository is PRIVATE because it contains:
- Live server URLs
- Authentication credentials
- Deployment-specific details
DO NOT make this repository public or share credentials outside authorized personnel.
Validate the ogc-client-CSAPI library against a real OGC API - Connected Systems server:
- Integration test suite (16+ tests)
- Live demonstration scripts
- Performance benchmarks
- Real-world compatibility verification
- Implementation: OpenSensorHub
- API: OGC API - Connected Systems (draft spec)
- Authentication: HTTP Basic Authentication
- Data: Real-time sensor data (drones, mobile devices, environmental sensors)
- Resources: Systems, Datastreams, Observations, Deployments, Procedures, Sampling Features
# Ensure main library is available
ls ../ogc-client-CSAPI # Should exist# Install dependencies (includes link to main library)
npm install
# Copy environment template
cp .env.example .env
# Edit .env with actual credentials (DO NOT COMMIT)
notepad .env# Run integration test suite
npm test
# Run specific demo
npm run demo:connection
npm run demo:navigator
npm run demo:library
# Run all demos
npm run demo:allogc-client-csapi-live-tests/
├── README.md # This file
├── .env.example # Template for credentials
├── .env # Actual credentials (gitignored)
├── .gitignore # Protect sensitive files
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── tests/
│ ├── live-server.integration.spec.ts # Full integration test suite
│ └── setup.ts # Test configuration
├── demos/
│ ├── csapi-live-connection.js # Step-by-step server exploration
│ ├── csapi-navigator-demo.js # Navigator URL builder pattern
│ └── csapi-library-demo.js # Using built library directly
├── docs/
│ ├── server-findings.md # Detailed server analysis
│ ├── test-results.md # Latest test execution logs
│ └── validation-report.md # Comprehensive validation report
└── scripts/
└── run-all-tests.sh # Convenience script for all tests
Create .env file with:
CSAPI_LIVE_SERVER=http://your-server-url/api
CSAPI_LIVE_USER=your-username
CSAPI_LIVE_PASS=your-passwordThe package.json references the main library as a local dependency:
{
"dependencies": {
"@camptocamp/ogc-client": "file:../ogc-client-CSAPI"
}
}After changes to the main library, run:
npm install # Refreshes the link- ✅ Server discovery and conformance
- ✅ Systems collection and individual retrieval
- ✅ Datastreams listing and filtering
- ✅ Observations with temporal queries
- ✅ Sub-resource navigation (system → datastreams)
- ✅ Query parameters (limit, q, bbox, datetime)
- ✅ Error handling (404, 401)
- ✅ Link following and pagination
- ✅ Format detection
- ✅ Type validation
- ✅ Direct connection pattern with manual fetch
- ✅ Navigator URL builder pattern validation
- ✅ Library integration with authentication
Latest test run: Run npm test to update
- Systems Found: 5 (drone, mobile devices)
- Datastreams Found: 3 (GPS, temperature, status)
- Observations: Real-time streaming validated
- Response Time: Sub-second for all endpoints
- Authentication: Basic Auth working correctly
- Format Compatibility: Handles multiple collection formats
GitHub Actions workflow runs tests:
- Schedule: Daily at noon UTC
- Trigger: Manual via workflow_dispatch
- Secrets: CSAPI_LIVE_SERVER, CSAPI_LIVE_USER, CSAPI_LIVE_PASS
View workflow runs in Actions tab.
- Add test to
tests/live-server.integration.spec.ts - Run locally:
npm test - Document findings in
docs/test-results.md - Commit and push (credentials are gitignored)
- ✅ Test results (pass/fail counts)
- ✅ Performance metrics
- ✅ Server capabilities discovered
- ✅ Compatibility notes
- ❌ Server URL
- ❌ Credentials
- ❌ Deployment details
- ❌ System IDs if sensitive
- Validation Capabilities: NEW - Comprehensive reference for what validations ARE vs ARE NOT implemented
- Server Findings: Detailed analysis of server behavior
- Test Results: Execution logs and metrics
- Validation Report: Comprehensive validation evidence
- OGC-Client-CSAPI Overview: Library assessment and capabilities
- Validation Executive Summary: Comprehensive validation findings
- Main Library: ogc-client-CSAPI (public)
- Upstream: camptocamp/ogc-client (target for contribution)
For issues or questions about live server testing, contact the repository maintainer.
Remember: This repository is private for a reason. Protect the credentials! 🔐