Skip to main content

Crate opendal_testkit

Crate opendal_testkit 

Source
Expand description

§Apache OpenDAL™ Testkit

opendal-testkit provides reusable test actions, data checkers, runtime setup, and service initialization helpers for Apache OpenDAL™ storage implementations.

This crate is intended for service and integration tests. It is not required by applications using an OpenDAL operator.

Add it as a development dependency:

cargo add --dev opendal-testkit

The opendal facade also re-exports the testkit behind its tests feature.

§Documentation

§Test operator configuration

OPENDAL_TEST_IO_TIMEOUT sets the behavior-test I/O timeout in positive whole seconds. When unset, the test operator uses the default from TimeoutLayer. Service fixtures can set this variable when their operations need a larger I/O budget.

§License

Licensed under the Apache License, Version 2.0.

Structs§

ReadChecker
Generates reference data and verifies reads against it.
WriteChecker
Generates write chunks and verifies the combined stored data.

Enums§

ReadAction
A reader operation executed by ReadChecker.
WriteAction
A writer operation used by write behavior tests.

Statics§

TEST_RUNTIME
TEST_RUNTIME is the runtime used for running tests.

Functions§

init_test_service
Init a service with given scheme.