From a124078bb66b0c041dc12a87c0c2a6f2964af18c Mon Sep 17 00:00:00 2001 From: Arun Jangra Date: Fri, 30 Aug 2024 12:26:42 +0530 Subject: [PATCH] feat : updated changelog.yml & updated code --- .github/workflows/e2e-test.yml | 6 +++--- CHANGELOG.md | 1 + e2e-tests/src/localstack.rs | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 64d974f8..aece81e1 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -1,4 +1,4 @@ -name: Rust Test & Coverage +name: E2E test on: pull_request_target: @@ -63,8 +63,8 @@ jobs: - name: Running anvil run: | - # Forking block number : 20607627 on ethereum mainnet - anvil --fork-url ${{ secrets.ETHEREUM_BLAST_RPC_URL }}@20607627 + # Forking block number : 20607627 on Ethereum Mainnet + anvil --fork-url ${{ secrets.ETHEREUM_BLAST_RPC_URL }}@20607627 & - name: Run e2e test run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index c79ba808..88b2d126 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Added +- e2e flow test - alerts module. - Tests for Settlement client. - Worker queues to listen for trigger events. diff --git a/e2e-tests/src/localstack.rs b/e2e-tests/src/localstack.rs index 384cbf31..316f503b 100644 --- a/e2e-tests/src/localstack.rs +++ b/e2e-tests/src/localstack.rs @@ -4,7 +4,7 @@ use aws_sdk_eventbridge::types::{InputTransformer, RuleState, Target}; use aws_sdk_sqs::types::QueueAttributeName; use aws_sdk_sqs::types::QueueAttributeName::VisibilityTimeout; use bytes::Bytes; -use orchestrator::data_storage::aws_s3::config::{AWSS3ConfigType, S3LocalStackConfig}; +use orchestrator::data_storage::aws_s3::config::AWSS3Config; use orchestrator::data_storage::aws_s3::AWSS3; use orchestrator::data_storage::{DataStorage, DataStorageConfig}; use orchestrator::queue::job_queue::{ @@ -173,7 +173,8 @@ impl LocalStack { } async fn s3_client(&self) -> Box { - Box::new(AWSS3::new(AWSS3ConfigType::WithEndpoint(S3LocalStackConfig::new_from_env())).await) + let aws_config = aws_config::load_from_env().await; + Box::new(AWSS3::new(AWSS3Config::new_from_env(), &aws_config)) } async fn event_bridge_client(&self) -> aws_sdk_eventbridge::Client {