mod common;
use technitium::RecordType;
#[tokio::test]
#[ignore = "requires running Technitium server"]
async fn cache_lifecycle() {
let client = common::authenticated_client().await;
// Resolve a domain to populate the cache
let _ = client.resolve("example.com", RecordType::A).await;
// List cached zones
let _cached = client
.list_cached_zones()
.await
.expect("list_cached_zones should succeed");
// Cache may or may not have the exact domain depending on server state
// list_cached_zones succeeded — no further assertion needed
// Flush cache
client
.flush_cache()
.await
.expect("flush_cache should succeed");
}