Struct exonum_testkit::TestKitApi [] [src]

pub struct TestKitApi { /* fields omitted */ }

API encapsulation for the testkit. Allows to execute and synchronously retrieve results for REST-ful endpoints of services.

Methods

impl TestKitApi
[src]

[src]

Returns the mounting point for public APIs. Useful for intricate testing not covered by get* and post* functions.

[src]

Returns the mounting point for private APIs. Useful for intricate testing not covered by get* and post* functions.

[src]

Sends a transaction to the node via ApiSender.

[src]

Gets information from a public endpoint of the node.

Panics

  • Panics if an error occurs during request processing (e.g., the requested endpoint is unknown), or if the response has a non-20x response status.

[src]

Gets information from a private endpoint of the node.

Panics

  • Panics if an error occurs during request processing (e.g., the requested endpoint is unknown), or if the response has a non-20x response status.

[src]

Gets an error from a public endpoint of the node.

Panics

  • Panics if the response has a non-40x response status.

[src]

Posts a transaction to the service using the public API. The returned value is the result of synchronous transaction processing, which includes running the API shim and Transaction.verify(). Transaction.execute() is not run until the transaction gets to a block via one of create_block*() methods.

Panics

  • Panics if an error occurs during request processing (e.g., the requested endpoint is unknown).

[src]

Posts a transaction to the service using the private API. The returned value is the result of synchronous transaction processing, which includes running the API shim and Transaction.verify(). Transaction.execute() is not run until the transaction gets to a block via one of create_block*() methods.

Panics

  • Panics if an error occurs during request processing (e.g., the requested endpoint is unknown).

Trait Implementations

impl Debug for TestKitApi
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TestKitApi

impl Sync for TestKitApi