Skip to content

Commit

Permalink
Introduce profile for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly-Style committed Nov 22, 2024
1 parent 75a654e commit a858060
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
run: forge install
working-directory: ./contracts/evm

- name: Test
- name: Go Integration Test
run: make tests-integration

- name: Rust Integration Test
run: cargo test --features it-tests
working-directory: ./tests/e2e/e2e-tests

18 changes: 9 additions & 9 deletions tests/e2e/e2e_tests/tests/ctr_availability_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,63 @@ mod containers;
use testcontainers::runners::AsyncRunner;
use crate::containers::*;

#[cfg(test)]
#[cfg(all(test, feature = "it-tests"))]
#[tokio::test]
pub async fn check_rabbitmq_available() {
let rabbitmq = rabbitmq();
rabbitmq.start().await.expect("");
}

#[cfg(test)]
#[cfg(all(test, feature = "it-tests"))]
#[tokio::test]
pub async fn check_anvil_node_available() {
let anvil_node = anvil_node();
anvil_node.start().await.expect("");
}

#[cfg(test)]
#[cfg(all(test, feature = "it-tests"))]
#[tokio::test]
pub async fn check_anvil_node_setup_available() {
let setup = anvil_node_setup();
setup.start().await.expect("");
}

#[cfg(test)]
#[cfg(all(test, feature = "it-tests"))]
#[tokio::test]
pub async fn check_anvil_rollup_node_available() {
let rollup_node = anvil_rollup_node(8546); // Example port number
rollup_node.start().await.expect("");
}

#[cfg(test)]
#[cfg(all(test, feature = "it-tests"))]
#[tokio::test]
pub async fn check_near_da_deployer_available() {
let deployer = near_da_deployer(3030); // Example indexer port number
deployer.start().await.expect("");
}

#[cfg(all(test, target_arch = "x86_64"))]
#[cfg(all(test, target_arch = "x86_64", feature = "it-tests"))]
#[tokio::test]
pub async fn check_rollup_relayer_available() {
let relayer = rollup_relayer(8546); // Example rollup node port number
relayer.start().await.expect("");
}

#[cfg(all(test, target_arch = "x86_64"))]
#[cfg(all(test, target_arch = "x86_64", feature = "it-tests"))]
#[tokio::test]
pub async fn check_indexer_available() {
let indexer = indexer();
indexer.start().await.expect("");
}

#[cfg(all(test, target_arch = "x86_64"))]
#[cfg(all(test, target_arch = "x86_64", feature = "it-tests"))]
#[tokio::test]
pub async fn check_aggregator_available() {
let aggregator = aggregator();
aggregator.start().await.expect("");
}

#[cfg(all(test, target_arch = "x86_64"))]
#[cfg(all(test, target_arch = "x86_64", feature = "it-tests"))]
#[tokio::test]
pub async fn check_operator_available() {
let operator = operator("../../../config-files/operator1-docker-compose.anvil.yaml"); // Example config path
Expand Down

0 comments on commit a858060

Please sign in to comment.