update CI to run tests against unbound & hickory

This commit is contained in:
Jorge Aparicio 2024-02-09 16:37:53 +01:00
parent e52980a82f
commit d17e42a679
3 changed files with 8 additions and 2 deletions

View File

@ -20,8 +20,11 @@ jobs:
toolchain: stable
components: clippy, rustfmt
- name: Run tests
run: cargo test --workspace
- name: Run tests against unbound
run: cargo test --workspace --include-ignored
- name: Run tests against hickory
run: DNS_TEST_SUBJECT=hickory cargo test --workspace
- name: Check that code is formatted
run: cargo fmt --all -- --check

View File

@ -61,6 +61,7 @@ fn can_resolve() -> Result<()> {
Ok(())
}
#[ignore]
#[test]
fn nxdomain() -> Result<()> {
let needle_fqdn = FQDN("unicorn.nameservers.com.")?;

View File

@ -7,6 +7,7 @@ use dns_test::zone_file::Root;
use dns_test::{Resolver, Result, TrustAnchor, FQDN};
// no DS records are involved; this is a single-link chain of trust
#[ignore]
#[test]
fn can_validate_without_delegation() -> Result<()> {
let mut ns = NameServer::new(FQDN::ROOT)?;
@ -46,6 +47,7 @@ fn can_validate_without_delegation() -> Result<()> {
Ok(())
}
#[ignore]
#[test]
fn can_validate_with_delegation() -> Result<()> {
let expected_ipv4_addr = Ipv4Addr::new(1, 2, 3, 4);