Skip to content

Commit

Permalink
more node api core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Jul 17, 2023
1 parent 51a9985 commit 5a1c939
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sdk/tests/client/node_api/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:#?}");
}

Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 5a1c939

Please sign in to comment.