Vip Tests
9 tests — 5 passed, 1 failed, 3 skipped
PASS<product> server is reachable
Test procedure
- Given <product> is configured in vip.toml
- When I request the <product> health endpoint
- Then the server responds with a successful status code
SKIP<product> server is reachable
Test procedure
- Given <product> is configured in vip.toml
- When I request the <product> health endpoint
- Then the server responds with a successful status code
PASS<product> server is reachable
Test procedure
- Given <product> is configured in vip.toml
- When I request the <product> health endpoint
- Then the server responds with a successful status code
FAILWorkbench server is reachable but not configured
Test procedure
- Given Workbench is expected to be configured
- When I check the Workbench configuration
- Then Workbench should be reachable
Error traceback
fixturefunc = <function workbench_reachable at 0x7f9a679d3600>
request = <FixtureRequest for <Function test_workbench_expected_failure>>
kwargs = {'wb_configured': False}
def call_fixture_func(
fixturefunc: _FixtureFunc[FixtureValue], request: FixtureRequest, kwargs
) -> FixtureValue:
if inspect.isgeneratorfunction(fixturefunc):
fixturefunc = cast(Callable[..., Generator[FixtureValue]], fixturefunc)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/_pytest/fixtures.py:915:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wb_configured = False
@then("Workbench should be reachable")
def workbench_reachable(wb_configured):
> assert wb_configured, (
"Workbench is not configured. "
"This is an expected failure used to demonstrate report rendering. "
"Set [workbench] url in vip.toml to resolve."
)
E AssertionError: Workbench is not configured. This is an expected failure used to demonstrate report rendering. Set [workbench] url in vip.toml to resolve.
E assert False
src/vip_tests/prerequisites/test_expected_failure.py:42: AssertionErrorPASSAPI key authentication works
Test procedure
- Given Connect is accessible at the configured URL
- And a valid API key is configured
- When I request the current user via the API
- Then the API returns user information
PASSCRAN mirror is accessible
Test procedure
- Given Package Manager is running
- When I query the CRAN repository for the "Matrix" package
- Then the package is found in the repository
SKIPPyPI mirror is accessible
Test procedure
- Given Package Manager is running
- When I query the PyPI repository for the "requests" package
- Then the package is found in the repository
SKIPBioconductor mirror is accessible
Test procedure
- Given Package Manager is running
- When I query the Bioconductor repository for the "BiocGenerics" package
- Then the package is found in the repository
PASSAt least one repository is configured
Test procedure
- Given Package Manager is running
- When I list all repositories
- Then at least one repository exists