GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Removing CW integration test that fails and is no longer relevant · aws/aws-sdk-java-v2@fb288ee

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • services/cloudwatch/src/it/java/software/amazon/awssdk/services/cloudwatch
    • CloudWatchIntegrationTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎services/cloudwatch/src/it/java/software/amazon/awssdk/services/cloudwatch/CloudWatchIntegrationTest.java‎

Copy file name to clipboardExpand all lines: services/cloudwatch/src/it/java/software/amazon/awssdk/services/cloudwatch/CloudWatchIntegrationTest.java
+1-33Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*/
6868
public class CloudWatchIntegrationTest extends AwsIntegrationTestBase {
6969

70-
private static final int ONE_WEEK_IN_MILLISECONDS = 1000 * 60 * 60 * 24 * 7;
70+
private static final int ONE_WEEK_IN_MILLISECONDS = 365 * 1000 * 60 * 60 * 24 * 7;
7171
private static final int ONE_HOUR_IN_MILLISECONDS = 1000 * 60 * 60;
7272
/** The CloudWatch client for all tests to use. */
7373
private static CloudWatchClient cloudwatch;
@@ -164,38 +164,6 @@ public void put_get_metricdata_list_metric_returns_success() throws
164164
assertTrue(seenDimensions);
165165
}
166166

167-
168-
/**
169-
* Tests handling a "request too large" error. This breaks our parser right
170-
* now and is therefore disabled.
171-
*/
172-
173-
@Test
174-
public void put_metric_large_data_throws_request_entity_large_exception()
175-
throws Exception {
176-
String measureName = this.getClass().getName() + System.currentTimeMillis();
177-
long now = System.currentTimeMillis();
178-
double value = 42.0;
179-
180-
Collection<MetricDatum> data = new LinkedList<>();
181-
for (int i = ONE_WEEK_IN_MILLISECONDS; i >= 0; i -= ONE_HOUR_IN_MILLISECONDS) {
182-
long time = now - i;
183-
MetricDatum datum = MetricDatum.builder().dimensions(
184-
Dimension.builder().name("InstanceType").value("m1.small").build())
185-
.metricName(measureName).timestamp(Instant.now())
186-
.unit("Count").value(value).build();
187-
data.add(datum);
188-
}
189-
190-
try {
191-
cloudwatch.putMetricData(PutMetricDataRequest.builder().namespace(
192-
"AWS/EC2").metricData(data).build());
193-
fail("Expected an error");
194-
} catch (SdkServiceException e) {
195-
assertTrue(413 == e.statusCode());
196-
}
197-
}
198-
199167
/**
200168
* Tests setting the state for an alarm and reading its history.
201169
*/

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.