Changeset 11127 in ntrip for trunk/BNC/tests/README.md


Ignore:
Timestamp:
Oct 24, 2026, 11:15:22 PM (6 days ago)
Author:
stuerze
Message:

test suite extended regardiing security aspects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/tests/README.md

    r11124 r11127  
    2626| `cases/<name>/expected/*.gz` | normalised reference outputs |
    2727| `data/*.raw` | short raw captures (BNC `rawOutFile` format) replayed via `--file` |
    28 | `tools/fakecaster.py` | local Ntrip caster recording an upload as a BNC raw file (case key `fakecaster`) |
    29 | `tools/bncraw.py` | `info` (streams, time span, RTCM3 message types) and `slice` for raw captures |
     28| `tools/fakecaster.py` | local Ntrip caster recording an upload as a BNC raw file (case key `fakecaster`); optionally TLS and serving a stream |
     29| `tools/bncraw.py` | `info` (streams, time span, RTCM3 message types), `slice` and `crs` (decode 1300/1301/1302) for raw captures |
    3030| `tools/mkcrafted.py` | writes `data/crafted_limits.raw`: crafted frames at the upper field limits |
    3131| `tools/ssr_harness.sh` | builds `tools/ssr_harness.cpp` with the SSR decoders under ASan/UBSan and runs it |
     32| `tools/ssl_check.py` | TLS checks of the Ntrip 2s client and upload (not part of `run_tests.py`) |
    3233| `work/` | scratch output, not versioned |
    3334
    … …  
    7576  (`tools/fakecaster.py`, Ntrip 1/2, chunked), and a `post` step decodes the
    7677  received stream again: `upload_rtnet` (IGS-SSR encoding, SP3/CLK/BIA files,
    77   decoded `.ssr`), `upload_eph` (RTCM3 ephemerides to RINEX nav) and
     78  decoded `.ssr`, CRS messages 1300/1302 decoded by `bncraw.py crs` in a
     79  `tool` post step), `upload_eph` (RTCM3 ephemerides to RINEX nav) and
    7880  `upload_raw` (raw forwarding to RINEX nav). `upload_rtnet_rtcm` encodes the same input to RTCM-SSR
    7981  (message numbers 1057-1068, 1240-1270) and decodes it again.
    … …  
    114116`crafted_limits.raw`: 7 entries with additional parameters of 40 and 0 bits,
    115117and 31 entries, which must be rejected), which `RTCM3Decoder.cpp` does not
    116 dispatch at present. Exit code 0 only without sanitizer errors.
     118dispatch at present. Every decoded VTEC and metadata message is encoded
     119again with the `Make*` function of the same class and decoded once more; the
     120result must be identical. Exit code 0 only without sanitizer errors and
     121differences.
     122
     123## TLS check
     124
     125```
     126tests/tools/ssl_check.py [--bnc PATH]
     127```
     128
     129Runs BNC against `tools/fakecaster.py` with TLS on port 443 (BNC uploads with
     130Ntrip 2s always to 443) inside an unprivileged user and network namespace
     131(`unshare -rn`), with a test CA, server and client certificates created by
     132openssl in `work/ssl_check/`. Checks for upload and download: certificate of
     133an unknown CA rejected, accepted with the CA in `sslCaCertPath`, accepted with
     134`sslIgnoreErrors` and the ignored errors logged; for upload also a
     135certificate for another host name (rejected) and a client certificate
     136required by the caster, with and without `sslIgnoreErrors`. Takes about 3 min.
    117137
    118138## Adding a replay case
Note: See TracChangeset for help on using the changeset viewer.