mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 11:21:12 +00:00
This PR introduces the initial Cucumber-based integration test framework for the LEZ, building on the testing-framework integration work started by @andrussal, adds the first set of Cucumber integration scenarios and establishes reusable infrastructure for future Cucumber scenarios. --------- Co-authored-by: Andrus Salumets <salumets.andrus@gmail.com> Co-authored-by: Sergio Chouhy <sergio.chouhy@gmail.com> Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com> Co-authored-by: Roman <zajic@zajic.net> Co-authored-by: Daniil Polyakov <arjentix@gmail.com> Co-authored-by: Moudy <m.ellaz@hotmail.com> Co-authored-by: andrussal <salumets.andrus@gmail.com>
31 lines
1.0 KiB
Rust
31 lines
1.0 KiB
Rust
#![expect(
|
|
clippy::tests_outside_test_module,
|
|
reason = "We don't care about these in tests"
|
|
)]
|
|
|
|
use anyhow::Result;
|
|
use integration_tests::testing_framework::BedrockApp;
|
|
use logos_blockchain_testing_framework::{DeploymentBuilder, TopologyConfig};
|
|
use testing_framework_app::{AppHostEnv, AppHostTopology, DeployContext};
|
|
use testing_framework_core::{scenario::NodeClients, topology::DeploymentSeed};
|
|
|
|
#[tokio::test]
|
|
async fn bedrock_can_be_deployed_from_a_configured_builder() -> Result<()> {
|
|
let mut deployment = DeployContext::<AppHostEnv>::new(AppHostTopology, NodeClients::default());
|
|
let builder = DeploymentBuilder::new(TopologyConfig::with_node_numbers(2))
|
|
.with_deployment_seed(DeploymentSeed::new([0x4c; 32]))
|
|
.with_test_context("lez-tf-bedrock-builder");
|
|
|
|
let bedrock = deployment
|
|
.deploy_and_expose(BedrockApp::from_builder(builder))
|
|
.await
|
|
.map_err(anyhow::Error::from_boxed)?;
|
|
|
|
bedrock
|
|
.cryptarchia_info()
|
|
.await
|
|
.map_err(anyhow::Error::from_boxed)?;
|
|
|
|
Ok(())
|
|
}
|