-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from originalworks/add-tests-ow_data_provider_cli
Add tests for ow_data_provider_cli
- Loading branch information
Showing
10 changed files
with
533 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
ipfs: | ||
image: ipfs/kubo:latest | ||
ports: | ||
- "5001:5001" | ||
|
||
test_runner: | ||
depends_on: | ||
- ipfs | ||
volumes: | ||
- ..:/protocol | ||
image: rust:latest | ||
working_dir: /protocol/ow_data_provider_cli | ||
user: "${UID:-1000}:${GID:-1000}" | ||
command: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
use alloy::primitives::{address, Address}; | ||
|
||
pub const DDEX_SEQUENCER_ADDRESS: Address = address!("B965D10739e19a9158e7f713720B0145D996E370"); | ||
|
||
#[cfg(any(not(test), rust_analyzer))] | ||
pub const IPFS_API_BASE_URL: &str = "http://localhost:5001"; | ||
pub const IPFS_API_ADD_FILE: &str = "/api/v0/add"; | ||
pub const OUTPUT_FILES_DIR: &str = "./output_files"; | ||
pub const IPFS_CIDS_ROOT_TAG: &str = "MessageHeader"; | ||
pub const IMAGE_FILE_CID_TAG: &str = "ImageIpfsCid"; | ||
|
||
#[cfg(all(test, not(rust_analyzer)))] | ||
pub const IPFS_API_BASE_URL: &str = "http://ipfs:5001"; | ||
pub const IPFS_API_CAT_FILE: &str = "/api/v0/cat"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.