forked from hyperledger/iroha
-
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.
[fix] hyperledger#1969: Update schema to distinguish
SmallVec
and `…
…Vec` types. Signed-off-by: Aleksandr <a-p-petrosyan@yandex.ru>
- Loading branch information
1 parent
2dac89e
commit 11cd760
Showing
3 changed files
with
38 additions
and
2 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,34 @@ | ||
#![allow(clippy::restriction)] | ||
|
||
use eyre::Result; | ||
use iroha_client::client; | ||
// use iroha_core::config::Configuration; | ||
use iroha_data_model::prelude::*; | ||
use parity_scale_codec::Encode; | ||
use test_network::{Peer as TestPeer, *}; | ||
|
||
#[test] | ||
fn find_all_domains_regression_test() -> Result<()> { | ||
let (_rt, _peer, mut test_client) = <TestPeer>::start_test_with_runtime(); | ||
wait_for_genesis_committed(vec![test_client.clone()], 0); | ||
// let pipeline_time = Configuration::pipeline_time(); | ||
|
||
// Given | ||
|
||
let normal_domain_name = "sora"; | ||
let create_domain = RegisterBox::new(IdentifiableBox::from(Domain::test(normal_domain_name))); | ||
test_client.submit(create_domain)?; | ||
|
||
let reply = test_client.request(FindDomainById::new( | ||
DomainId::new("genesis").expect("Valid"), | ||
))?; | ||
println!("{:#?}", reply); | ||
let reply = test_client.request(FindAccountsByDomainId::new( | ||
DomainId::new("genesis").expect("Valid"), | ||
))?; | ||
println!("{:#?}", reply); | ||
println!("{}", String::from_utf8_lossy(&reply.encode())); | ||
let reply = test_client.request(FindAllAccounts::new())?; | ||
println!("{:#?}", reply); | ||
Ok(()) | ||
} |
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