Adding upstream version 0.0.22.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2f814b513a
commit
b06d3acde8
190 changed files with 61565 additions and 0 deletions
23
icann-rdap-cli/tests/integration/rdap_cmd/check.rs
Normal file
23
icann-rdap-cli/tests/integration/rdap_cmd/check.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use {icann_rdap_common::response::Domain, icann_rdap_srv::storage::StoreOps};
|
||||
|
||||
use crate::test_jig::TestJig;
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn GIVEN_domain_with_check_WHEN_query_THEN_failure() {
|
||||
// GIVEN
|
||||
let mut test_jig = TestJig::new_rdap().await;
|
||||
let mut tx = test_jig.mem.new_tx().await.expect("new transaction");
|
||||
tx.add_domain(&Domain::builder().ldh_name("foo.example").build())
|
||||
.await
|
||||
.expect("add domain in tx");
|
||||
tx.commit().await.expect("tx commit");
|
||||
|
||||
// WHEN
|
||||
test_jig.cmd.arg("--error-on-check").arg("foo.example");
|
||||
|
||||
// THEN
|
||||
let assert = test_jig.cmd.assert();
|
||||
assert.failure();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue