Add test for handling unknown SLDs with sldInfo method.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user