Commit Graph
7 Commits
Author SHA1 Message Date
Khem Raj 9ed32b0779 python3-betamax: skip the live-network hook tests in ptest
tests/integration/test_hooks.py records live https://httpbin.org
requests (no cassettes are shipped for them), so the ptest fails
whenever the service resets the connection, e.g.:

  FAIL: tests/integration/test_hooks.py:TestHooks.test_post_start_hook
  requests.exceptions.ConnectionError: ('Connection aborted.',
    ConnectionResetError(104, 'Connection reset by peer'))

The same tests pass when the service behaves (3 out of 3 runs in a
qemux86-64 VM), so they are flaky rather than broken. Leave them out
of the ptest run.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-12 16:52:15 -07:00
Khem Raj ec4c278bc9 python3-betamax: Skip ptests accessing network
cassette fixtures are not installed in ptests so skip
test_requests_with_json_body

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:15 -08:00
Gyorgy Sarvari 10af66f23c python3-betamax: fix ptests
A number of tests require internet access - set a valid DNS in resolv.conf
so the tests don't fail.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-19 16:11:36 -07:00
Khem Raj e8778f71f7 python3-betamax: Upgrade to 0.9.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-29 12:46:51 -08:00
Tim Orling a6c2d9fa61 python3-betamax: switch to pytest --automake
* Also replace ${PYTHON_PN} with python3

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-16 16:42:38 -08:00
Zhixiong Chi 17243e70c8 python3-betamax: fix ptest failture of fixture and record modes
In betamax fixtures and recorde_modes ptest are failing due to
the deprecation of fixture usage and the httpbin.org service.
Drop these ptests in meta-oe, until there is a suitable solution
to fix this failure.

Validation:
Enable ptest and add python3-betamax into IMAGE_INSTALL
$runqemu ...
$cd /usr/[lib/lib64]/python3-betamax/ptest
$./run-ptest
ALL ptests PASS.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-28 10:44:00 -07:00
Sakib Sajal 8447ad3d25 python3-betamax: add recipe
betamax is required for enabling ptest
in python3-requests-toolbelt

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-06 10:21:18 -07:00