Add test for handling unknown SLDs with sldInfo method.

This commit is contained in:
2025-12-31 16:30:49 +01:00
parent dd586be9f4
commit 12c75914b1
@@ -35,6 +35,12 @@ public class CfClientTest {
assumeTrue(API_KEY != null && !API_KEY.isBlank(), "API_KEY not set; skipping pen tests");
}
@Test
void testUnknownSld() throws Exception {
ZoneEntity zone = client.zoneInfo(ZONE_STR);
assertThrows(CloudflareNotFoundException.class, () -> client.sldInfo(zone, "unknown", RecordType.A));
}
@Test
void testAddHost() throws Exception {
ZoneEntity zone = client.zoneInfo(ZONE_STR);