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