Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A black box verifier for OGC API specifications
This package is available on PyPi and can be installed with pip
$ python -m pip install ogctests
The test suite is designed to be run from the command line. At least one scope and an instance URL must be provided.
$ python -m ogctests <scope_1> [<scope_2>] -i <instance_url>
The test suite can also be called from within your python code by importing the run_ogctests
function from
the main module
from ogctests.main import run_ogctests
scope = "features/core"
run_ogctests(scope)
You can optionally override the HTTP client used by the ogc test suite by passing a value to the test_client
argument.
This is especially useful if you want to integrate the ogctests into your own test suite, and have it use
your own test client.
from fastapi import FastAPI
from fastapi.testing import TestClient
from ogctests.main import run_ogctests
app = FastAPI()
client = TestClient(app)
scope = "features/core"
run_ogctests(scope, client)
Thus, all requests made by the ogctests test suite will be done using the fastapi.testing.TestClient instead of the default httpx.Client declared in the ogc test suite.
For instructions on how to scope the tests, call the package with the -h
flag.
$ python -m ogctests -h
Reporting to stdout is as per normal pytest output. To increase the verbosity of the output set the -v
flag to True
.
To create a detailed report of the test run, set the -r
flag to True
. This will create a junitxml report in the users
home folder under ogctestsReporting/<date>.xml
In line with the Official OGC test suite (written in Java), this Python-based test suite will verify the compliance of a given endpoint with the OGC API - Features - Part 1: Core specification.
The test suite only tests against the OGC API - Features - Part 1: Core specification, But may be expanded in the future.
An introduction to the OGC API specification
OGC API — Features — Part 1: Core
Official OGC test suite
https://github.com/opengeospatial/ogcapi-features/tree/master/implementations/servers
FAQs
[WIP] A black box verifier for the OGC API Specification
We found that ogctests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.