tests: the Sip suite's header names its sections, and its reginfo fixture takes a documentation address and the suites' instance id
The suite's header comment named five of its sections — header access, the status line, the granted lifetime, the caller's identity and the frame buffer — and left out six: ViaResponsePort, DatagramMessage, RetryAfter and RefusalSummary, ResponseOf, RegInfoContactState, HeaderUri and Body. Its reg-event fixture had a contact at [2a03:db8::1], outside the documentation prefix 2001:db8::/32, and an instance id built on a real phone model's type allocation code. The header now names every section; the fixture has [2001:db8::1] and the instance id that tests/Aka and tests/Messages use, 35999999-000000-1. No check changes.
This commit is contained in:
parent
a63132deb8
commit
ca825937bf
1 changed files with 9 additions and 5 deletions
|
|
@ -2,9 +2,13 @@
|
|||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// Imsd:Sip unit tests — header access, status-line parsing, granted-expires
|
||||
// extraction, caller-identity extraction, and the TCP frame buffer (split
|
||||
// delivery, keepalive pongs, pipelined messages). These pin the module's
|
||||
// edge-case behavior; see the module header before "fixing" one.
|
||||
// extraction, caller-identity extraction, the port a Via names for the
|
||||
// response (ViaResponsePort), the two framers — the TCP frame buffer (split
|
||||
// delivery, keepalive pongs, pipelined messages) and a datagram's
|
||||
// (DatagramMessage) —, a refused final's Retry-After and summary (RetryAfter,
|
||||
// RefusalSummary), transaction matching (ResponseOf), our binding in a
|
||||
// reg-event document (RegInfoContactState), and HeaderUri and Body. These pin
|
||||
// the module's edge-case behavior; see the module header before "fixing" one.
|
||||
import std;
|
||||
import Imsd;
|
||||
|
||||
|
|
@ -257,8 +261,8 @@ int main() {
|
|||
auto contact = [](std::string_view id, std::string_view state, std::string_view extra, std::string_view user) {
|
||||
return std::format(
|
||||
"\t\t<contact id=\"{}\" state=\"{}\"{}>\n"
|
||||
"\t\t\t<uri>sip:{}@[2a03:db8::1]:45062</uri>\n"
|
||||
"\t\t\t<unknown-param name=\"+sip.instance\">"<urn:gsma:imei:35901961-000000-0>" </unknown-param>\n"
|
||||
"\t\t\t<uri>sip:{}@[2001:db8::1]:45062</uri>\n"
|
||||
"\t\t\t<unknown-param name=\"+sip.instance\">"<urn:gsma:imei:35999999-000000-1>" </unknown-param>\n"
|
||||
"\t\t</contact>\n", id, state, extra, user);
|
||||
};
|
||||
auto reginfo = [](std::string_view contacts) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue