From 5a1c93962010bcb63934d5c79a9a3a1590206c18 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Tue, 18 Jul 2023 01:52:15 +0200 Subject: [PATCH] more node api core tests --- sdk/tests/client/node_api/core.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sdk/tests/client/node_api/core.rs b/sdk/tests/client/node_api/core.rs index 5628c2a6d3..c7e7cb629e 100644 --- a/sdk/tests/client/node_api/core.rs +++ b/sdk/tests/client/node_api/core.rs @@ -119,7 +119,12 @@ async fn test_get_address_outputs() { .unwrap(); let r = client.get_outputs(&output_ids_response.items).await.unwrap(); + println!("{r:#?}"); + + let r = client.get_outputs_ignore_errors(&output_ids_response.items).await.unwrap(); + println!("{r:#?}"); + let r = client.get_outputs_metadata_ignore_errors(&output_ids_response.items).await.unwrap(); println!("{r:#?}"); } @@ -155,6 +160,19 @@ async fn test_get_output_raw() { assert_eq!(output, output_raw); } +#[ignore] +#[tokio::test] +async fn test_get_output_metadata() { + let (_block_id, transaction_id) = setup_transaction_block().await; + let output_id = OutputId::new(transaction_id, 0).unwrap(); + + let client = setup_client_with_node_health_ignored().await; + + let r = client.get_output_metadata(&output_id).await.unwrap(); + + println!("{r:#?}"); +} + #[ignore] #[tokio::test] async fn test_get_peers() { @@ -340,6 +358,18 @@ async fn test_get_included_block_raw() { assert_eq!(block, block_raw); } +#[ignore] +#[tokio::test] +async fn test_get_included_block_metadata() { + let (_block_id, transaction_id) = setup_transaction_block().await; + + let client = setup_client_with_node_health_ignored().await; + + let r = client.get_included_block_metadata(&transaction_id).await.unwrap(); + + println!("{r:#?}"); +} + #[ignore] #[tokio::test] async fn test_call_plugin_route() {