<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/tests/accel-pppd, branch master</title>
<subtitle>High performance PPTP/L2TP/SSTP/PPPoE/IPoE server for Linux (mirror of https://github.com/accel-ppp/accel-ppp.git)
</subtitle>
<id>https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=master</id>
<link rel='self' href='https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/'/>
<updated>2026-08-02T01:51:09+00:00</updated>
<entry>
<title>metrics: expose session details in JSON output</title>
<updated>2026-08-02T01:51:09+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2026-08-02T01:13:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=edd9f9ce6fc0f99e751fde20b0bb55bbd6b3a2f9'/>
<id>urn:sha1:edd9f9ce6fc0f99e751fde20b0bb55bbd6b3a2f9</id>
<content type='text'>
Add an opt-in sessions setting for the JSON metrics renderer. Include session identity, addressing, protocol state, interface context, uptime, and traffic counters while keeping Prometheus output aggregate-only.

The session list is walked with ses_lock held, so report the accounting counters the session last sampled rather than calling ap_session_read_stats(): that issues a synchronous netlink round trip per session, which would stall session setup and teardown for the duration of a scrape, it writes back into the session while only the read lock is held, and it needs the thread local net of the session's namespace, which the metrics context does not have. Counter freshness therefore follows accounting, which the documentation spells out.

Escape malformed UTF-8 in peer supplied strings so a single bad username cannot make the whole document undecodable, and reserve room for the response header in front of the rendered body so a body that can be megabytes is not copied a second time.

Document the privacy-sensitive option in both accel-ppp.conf and the man page, and cover the empty session list, the aggregate-only Prometheus output and the response framing in the metrics integration test.
</content>
</entry>
<entry>
<title>tests: Add metrics module coverage</title>
<updated>2026-05-14T08:42:17+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2026-05-14T08:42:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=73f1da37630c1799d32f881ebafdfe353ecffdd6'/>
<id>urn:sha1:73f1da37630c1799d32f881ebafdfe353ecffdd6</id>
<content type='text'>
Signed-off-by: Denys Fedoryshchenko &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>tests,ci: disable chap-secrets related tests on alpine</title>
<updated>2024-11-28T21:37:25+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-11-28T21:24:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=3ffd332fc22bdfb450f941ad2bbf5c04c2467ed1'/>
<id>urn:sha1:3ffd332fc22bdfb450f941ad2bbf5c04c2467ed1</id>
<content type='text'>
radius and chap-secrets can't work together due to musl library limiations
This patch disables chap-secrets related tests on alpine

ref: https://github.com/accel-ppp/accel-ppp/pull/190#issuecomment-2331036461
</content>
</entry>
<entry>
<title>tests: add ipoe shared + chap-secrets auth, add ipoe+chap-secrets + lua</title>
<updated>2024-11-28T20:26:32+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-09-05T23:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=b79583d732bb62e90d11510e751a5d9f624efacf'/>
<id>urn:sha1:b79583d732bb62e90d11510e751a5d9f624efacf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: add test pppoe session using chap-secrets auth</title>
<updated>2024-09-04T21:15:34+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-09-04T21:15:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=634d67196c30c69230b4382463aab414f0e9a279'/>
<id>urn:sha1:634d67196c30c69230b4382463aab414f0e9a279</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ci: run tests in alpine vm</title>
<updated>2024-08-23T23:45:58+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-08-22T15:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=3be221b510112a30922b1da2697eaaaca09ebfd5'/>
<id>urn:sha1:3be221b510112a30922b1da2697eaaaca09ebfd5</id>
<content type='text'>
Alpine Linux uses musl libc so now accel-ppp is tested under musl

Currently, Alpine Linux doesn't provide a link to the latest stable version
so direct link to Alpine 3.20 is used

Improved musl support might be used to run on platforms like openwrt
without additional patches
</content>
</entry>
<entry>
<title>tests: add pcre negative cases, improve pcre-related code test coverage</title>
<updated>2024-08-19T20:01:11+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-08-19T20:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=3498d52d7eb33b33b16d0ceef44ed3b52debdd5c'/>
<id>urn:sha1:3498d52d7eb33b33b16d0ceef44ed3b52debdd5c</id>
<content type='text'>
these test cases will help for pcre2 migration (issue #173)
</content>
</entry>
<entry>
<title>tests ci: add testing in Qemu (Ubuntu 18.04, 20.04, 22.04, Debian 10,11,12)</title>
<updated>2022-09-05T21:18:57+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2022-09-05T20:02:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=127b1de95923fccdfdc892c20f931d364e099f4b'/>
<id>urn:sha1:127b1de95923fccdfdc892c20f931d364e099f4b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add tests and ci workflow for running tests</title>
<updated>2022-09-04T16:06:49+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2022-09-04T15:49:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=c92ff6266b18a9655edef231391739f0479dfb3a'/>
<id>urn:sha1:c92ff6266b18a9655edef231391739f0479dfb3a</id>
<content type='text'>
This commit adds tests (using python3 pytest framework):
1. Test basic accel-cmd commands (show version, show stat, etc)
2. Test ipoe shared session up (dhcpv4) without radius
3. Test pppoe discovery (without PADO delay)
4. Test pppoe discovery (without PADO delay)
5. Test pppoe session up (ipv4) without radius
6. Test vlan creation using vlan-mon (pppoe)

These tests require external utils. Please read tests/README.md how to setup
environment, how to run the tests and how to generate coverage report
Also, run-tests.yml contains step-by-step instruction how to run the tests

Signed-off-by: Sergey V. Lobanov &lt;sergey@lobanov.in&gt;
</content>
</entry>
</feed>
