public void testDisableAlarmActions() throws Exception { CloudWatchApi cloudWatchApi = requestSendsResponse(alarmRequest(ImmutableMap.of( "Action", "DisableAlarmActions", "AlarmNames.member.1", "TestAlarmName1", "AlarmNames.member.2", "TestAlarmName2", "Signature", "tvSfJ%2BgcrHowwUECSniV0TQP2OObpWCuba0S5dd723Y%3D" )), HttpResponse.builder() .statusCode(200) .payload(payloadFromResourceWithContentType("/VoidResponse.xml", "text/xml")) .build()); // Ensure there is no error returned cloudWatchApi.getAlarmApiForRegion(null).disable(ImmutableSet.of( "TestAlarmName1", "TestAlarmName2" )); }
public void testDisableAlarmActions() throws Exception { CloudWatchApi cloudWatchApi = requestSendsResponse(alarmRequest(ImmutableMap.of( "Action", "DisableAlarmActions", "AlarmNames.member.1", "TestAlarmName1", "AlarmNames.member.2", "TestAlarmName2", "Signature", "tvSfJ%2BgcrHowwUECSniV0TQP2OObpWCuba0S5dd723Y%3D" )), HttpResponse.builder() .statusCode(200) .payload(payloadFromResourceWithContentType("/VoidResponse.xml", "text/xml")) .build()); // Ensure there is no error returned cloudWatchApi.getAlarmApiForRegion(null).disable(ImmutableSet.of( "TestAlarmName1", "TestAlarmName2" )); }
api().disable(ImmutableSet.of(alarmName));
api().disable(ImmutableSet.of(alarmName));