mirror of https://github.com/apache/jclouds.git
Merge pull request #620 from grkvlt/timezone-fix
Not everyone lives in US-CA
This commit is contained in:
commit
81f46b49a7
|
@ -22,6 +22,7 @@ import static org.testng.Assert.assertEquals;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.TimeZone;
|
||||||
|
|
||||||
import org.jclouds.cloudwatch.CloudWatchClient;
|
import org.jclouds.cloudwatch.CloudWatchClient;
|
||||||
import org.jclouds.cloudwatch.domain.Dimension;
|
import org.jclouds.cloudwatch.domain.Dimension;
|
||||||
|
@ -45,6 +46,11 @@ import com.google.common.collect.ImmutableMultimap;
|
||||||
*/
|
*/
|
||||||
@Test(groups = "unit", testName = "MetricClientExpectTest")
|
@Test(groups = "unit", testName = "MetricClientExpectTest")
|
||||||
public class MetricClientExpectTest extends BaseCloudWatchClientExpectTest {
|
public class MetricClientExpectTest extends BaseCloudWatchClientExpectTest {
|
||||||
|
|
||||||
|
public MetricClientExpectTest() {
|
||||||
|
TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"));
|
||||||
|
}
|
||||||
|
|
||||||
HttpRequest listMetrics = HttpRequest.builder()
|
HttpRequest listMetrics = HttpRequest.builder()
|
||||||
.method("POST")
|
.method("POST")
|
||||||
.endpoint(URI.create("https://monitoring.us-east-1.amazonaws.com/"))
|
.endpoint(URI.create("https://monitoring.us-east-1.amazonaws.com/"))
|
||||||
|
|
Loading…
Reference in New Issue