1
0
Fork 0

Adding upstream version 0.0.22.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-08 18:41:54 +02:00
parent 2f814b513a
commit b06d3acde8
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
190 changed files with 61565 additions and 0 deletions

View 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();
}