@Test (expected = AssertionError.class) public void testAssertTrueR53FailoverMismatchHost() throws Throwable { route53StepDefinitions.assertTrueR53Failover(PRIMARY, "(([^/])+)?third.com."); }
@Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") public void assertTrueR53Failover(String primary, String secondary) throws Throwable { if (!isRegex(secondary)) { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary)); } else { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).matches(secondary)); } }
Route53StepDefinitions { @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") public void assertTrueR53Failover(String primary, String secondary) throws Throwable { if (!isRegex(secondary)) { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary)); } else { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).matches(secondary)); } } }
Route53StepDefinitions { @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") public void assertTrueR53Failover(String primary, String secondary) throws Throwable { if (!isRegex(secondary)) { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary)); } else { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).matches(secondary)); } } Route53StepDefinitions(); }
Route53StepDefinitions { @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") public void assertTrueR53Failover(String primary, String secondary) throws Throwable { if (!isRegex(secondary)) { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary)); } else { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).matches(secondary)); } } Route53StepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") void assertTrueR53Failover(String primary, String secondary); @Then("^assertFalse R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") void assertFalseR53Failover(String primary, String secondary); @Given("^R53 Healthcheck ID \"([^\"]*)\"$") Route53StepDefinitions givenR53HealthCheckID(String r53HealthCheckId); @Then("^assertR53 HealthCheck state = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String expectedState); @Then("^assertR53 HealthCheckId \"([^\"]*)\" with state = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String route53HealthCheckId, String expectedState); @Given("^R53 traffic policy name \"([^\"]*)\"$") Route53StepDefinitions giveR53TrafficPolicyName(String r53PolicyName); @When("^R53 update traffic policy version to (\\d+)$") void updateR53PolicyVersion(int version); @Then("^assertR53 traffic policy versionId = (\\d+)$") void assertR53VersionId(int expectedVersion); @When("^R53 update HealthCheck regions to \"([^\"]*)\"$") void updatR53HealthCheckRegions(String regions); @Then("^assertR53 HealthCheck regions = \"([^\"]*)\"$") void assertR53HealthCheckRegions(String regions); @When("^R53 reset HealthCheck to default regions$") void resetR53HealthCheckRegions(); }
Route53StepDefinitions { @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") public void assertTrueR53Failover(String primary, String secondary) throws Throwable { if (!isRegex(secondary)) { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary)); } else { Assert.assertTrue("DNS Failover Check succeeded", DNSLookup.hostNameLookup(primary).matches(secondary)); } } Route53StepDefinitions(); ExecutionStateCache getExecutionStateCache(); void setExecutionStateCache(ExecutionStateCache executionStateCache); @Then("^assertTrue R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") void assertTrueR53Failover(String primary, String secondary); @Then("^assertFalse R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$") void assertFalseR53Failover(String primary, String secondary); @Given("^R53 Healthcheck ID \"([^\"]*)\"$") Route53StepDefinitions givenR53HealthCheckID(String r53HealthCheckId); @Then("^assertR53 HealthCheck state = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String expectedState); @Then("^assertR53 HealthCheckId \"([^\"]*)\" with state = \"([^\"]*)\"$") void assertCloudWatchAlarmState(String route53HealthCheckId, String expectedState); @Given("^R53 traffic policy name \"([^\"]*)\"$") Route53StepDefinitions giveR53TrafficPolicyName(String r53PolicyName); @When("^R53 update traffic policy version to (\\d+)$") void updateR53PolicyVersion(int version); @Then("^assertR53 traffic policy versionId = (\\d+)$") void assertR53VersionId(int expectedVersion); @When("^R53 update HealthCheck regions to \"([^\"]*)\"$") void updatR53HealthCheckRegions(String regions); @Then("^assertR53 HealthCheck regions = \"([^\"]*)\"$") void assertR53HealthCheckRegions(String regions); @When("^R53 reset HealthCheck to default regions$") void resetR53HealthCheckRegions();  }