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");
|
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
|
@Test
|
||||||
void testAddHost() throws Exception {
|
void testAddHost() throws Exception {
|
||||||
ZoneEntity zone = client.zoneInfo(ZONE_STR);
|
ZoneEntity zone = client.zoneInfo(ZONE_STR);
|
||||||
|
|||||||
Reference in New Issue
Block a user