MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / can_add_caa_record

Function can_add_caa_record

certbot/src/dns01_client/cloudflare.rs:406–419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405 #[tokio::test]
406 async fn can_add_caa_record() {
407 let client = create_client().await;
408 let subdomain = random_subdomain();
409 let record_id = client
410 .add_caa_record(&subdomain, 0, "issue", "letsencrypt.org;")
411 .await
412 .unwrap();
413 let record = client.get_caa_records(&subdomain).await.unwrap();
414 assert_eq!(record[0].id, record_id);
415 assert_eq!(record[0].content, "0 issue \"letsencrypt.org;\"");
416 client.remove_record(&record_id).await.unwrap();
417 let record = client.get_caa_records(&subdomain).await.unwrap();
418 assert!(record.is_empty());
419 }
420}

Callers

nothing calls this directly

Calls 5

create_clientFunction · 0.85
random_subdomainFunction · 0.85
add_caa_recordMethod · 0.80
get_caa_recordsMethod · 0.80
remove_recordMethod · 0.80

Tested by

no test coverage detected