diff --git a/aws-logs-metricfilter/overrides.json b/aws-logs-metricfilter/overrides.json deleted file mode 100644 index 3ff6679..0000000 --- a/aws-logs-metricfilter/overrides.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "CREATE": { - "/LogGroupName": "this-is-a-random-loggroup-for-contract-tests", - "/FilterName": "my-metric-filter", - "/FilterPattern": "[size]", - "/MetricTransformations": [ - { - "MetricValue": "10", - "MetricNamespace": "my-namespace", - "MetricName": "metric-name" - } - ] - } -} diff --git a/aws-logs-metricfilter/src/test/java/software/amazon/logs/metricfilter/BaseHandlerStdTest.java b/aws-logs-metricfilter/src/test/java/software/amazon/logs/metricfilter/BaseHandlerStdTest.java index 6794f59..aed605e 100644 --- a/aws-logs-metricfilter/src/test/java/software/amazon/logs/metricfilter/BaseHandlerStdTest.java +++ b/aws-logs-metricfilter/src/test/java/software/amazon/logs/metricfilter/BaseHandlerStdTest.java @@ -114,7 +114,7 @@ void handleNonRetryableError() { assertThat(response).isNotNull(); assertThat(response.getStatus()).isEqualTo(OperationStatus.FAILED); assertThat(response.getCallbackDelaySeconds()).isZero(); - assertTrue(response.getMessage().contains("Invalid request (Service: CloudWatchLogs, Status Code: 400, Request ID: e689f8f9-bc25-48de-86be-4cee73125707")); + assertThat(response.getMessage()).contains("Invalid request (Service: CloudWatchLogs, Status Code: 400, Request ID: e689f8f9-bc25-48de-86be-4cee73125707"); assertThat(response.getErrorCode()).isNotNull(); verify(proxyClient.client(), never()).putMetricFilter(any(PutMetricFilterRequest.class)); } @@ -151,4 +151,4 @@ private static Stream exists() { Arguments.of("filter-name", "", false) ); } -} \ No newline at end of file +}