Skip to content

Commit

Permalink
The AWS Mobile SDK for iOS 2.1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhu committed Jun 8, 2015
1 parent e152106 commit eaa3860
Show file tree
Hide file tree
Showing 438 changed files with 3,474 additions and 1,867 deletions.
4 changes: 2 additions & 2 deletions AWSAutoScaling.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSAutoScaling'
s.version = '2.1.1'
s.version = '2.1.2'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.dependency 'AWSCore', '2.1.1'
s.dependency 'AWSCore', '2.1.2'
s.dependency 'Bolts', '~> 1.1.0'
s.dependency 'Mantle', '~> 1.4'

Expand Down
18 changes: 0 additions & 18 deletions AWSAutoScaling.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
00013F32235761F46692B77A /* Pods-AutoScaling.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoScaling.release.xcconfig"; path = "Pods/Target Support Files/Pods-AutoScaling/Pods-AutoScaling.release.xcconfig"; sourceTree = "<group>"; };
1DA626D8A5FE1C2560C78C72 /* Pods-AWSAutoScaling.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AWSAutoScaling.release.xcconfig"; path = "Pods/Target Support Files/Pods-AWSAutoScaling/Pods-AWSAutoScaling.release.xcconfig"; sourceTree = "<group>"; };
2177028105C432CA525715AC /* libPods-AWSAutoScaling.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AWSAutoScaling.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3AFFABC8223BFC112AFCFB4E /* Pods-AWSAutoScaling.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AWSAutoScaling.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AWSAutoScaling/Pods-AWSAutoScaling.debug.xcconfig"; sourceTree = "<group>"; };
79E9484D437D744373824AB9 /* Pods-AutoScaling.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoScaling.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AutoScaling/Pods-AutoScaling.debug.xcconfig"; sourceTree = "<group>"; };
BD00002F1AB8C4D2004496EF /* credentials.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = credentials.json; path = AWSCoreTests/credentials.json; sourceTree = SOURCE_ROOT; };
BD0000471AB8E119004496EF /* AWSTestUtility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSTestUtility.h; path = AWSCoreTests/AWSTestUtility.h; sourceTree = SOURCE_ROOT; };
BD0000481AB8E119004496EF /* AWSTestUtility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSTestUtility.m; path = AWSCoreTests/AWSTestUtility.m; sourceTree = SOURCE_ROOT; };
Expand Down Expand Up @@ -168,8 +166,6 @@
EBF92C517A7A1B79B7969CD1 /* Pods */ = {
isa = PBXGroup;
children = (
79E9484D437D744373824AB9 /* Pods-AutoScaling.debug.xcconfig */,
00013F32235761F46692B77A /* Pods-AutoScaling.release.xcconfig */,
3AFFABC8223BFC112AFCFB4E /* Pods-AWSAutoScaling.debug.xcconfig */,
1DA626D8A5FE1C2560C78C72 /* Pods-AWSAutoScaling.release.xcconfig */,
);
Expand Down Expand Up @@ -209,7 +205,6 @@
BDB5DF191AB37A79002DD224 /* Frameworks */,
BDB5DF1A1AB37A79002DD224 /* CopyFiles */,
BDB5DF361AB37AA2002DD224 /* Headers */,
CE700D121AD365F4008A227B /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -306,19 +301,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AWSAutoScaling/Pods-AWSAutoScaling-resources.sh\"\n";
showEnvVarsInLog = 0;
};
CE700D121AD365F4008A227B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ -e \"XcodeCoverage/exportenv.sh\" ]; then\nXcodeCoverage/exportenv.sh\nfi";
};
F4AE4BE2A5CB7D34DDDF57EF /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScaling/AWSAutoScaling.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScaling/AWSAutoScalingModel.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScaling/AWSAutoScalingModel.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScaling/AWSAutoScalingService.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
4 changes: 2 additions & 2 deletions AWSAutoScaling/AWSAutoScalingService.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down Expand Up @@ -222,7 +222,7 @@ - (instancetype)initWithConfiguration:(AWSServiceConfiguration *)configuration {
_configuration.retryHandler = [[AWSAutoScalingRequestRetryHandler alloc] initWithMaximumRetryCount:_configuration.maxRetryCount];
_configuration.headers = @{@"Host" : _configuration.endpoint.hostName};

_networking = [AWSNetworking networking:_configuration];
_networking = [[AWSNetworking alloc] initWithConfiguration:_configuration];
}

return self;
Expand Down
28 changes: 27 additions & 1 deletion AWSAutoScalingTests/AWSAutoScalingTests.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down Expand Up @@ -38,6 +38,32 @@ - (void)tearDown {
[super tearDown];
}

- (void)testClockSkewAS {
[AWSTestUtility setupSwizzling];

XCTAssertFalse([NSDate aws_getRuntimeClockSkew], @"current RunTimeClockSkew is not zero!");
[AWSTestUtility setMockDate:[NSDate dateWithTimeIntervalSince1970:3600]];

AWSAutoScaling *autoScaling = [AWSAutoScaling defaultAutoScaling];
XCTAssertNotNil(autoScaling);

[[[autoScaling describeAccountLimits:nil] continueWithBlock:^id(BFTask *task) {
if (task.error) {
XCTFail(@"Error: [%@]", task.error);
}

if (task.result) {
XCTAssertTrue([task.result isKindOfClass:[AWSAutoScalingDescribeAccountLimitsAnswer class]]);
AWSAutoScalingDescribeAccountLimitsAnswer *describeAccountLimitsAnswer = task.result;
XCTAssertNotNil(describeAccountLimitsAnswer.maxNumberOfAutoScalingGroups);
}

return nil;
}] waitUntilFinished];

[AWSTestUtility revertSwizzling];
}

- (void)testDescribeAccountLimits {
AWSAutoScaling *autoScaling = [AWSAutoScaling defaultAutoScaling];

Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScalingTests/AWSGeneralAutoScalingTests.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
4 changes: 2 additions & 2 deletions AWSCloudWatch.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSCloudWatch'
s.version = '2.1.1'
s.version = '2.1.2'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.dependency 'AWSCore', '2.1.1'
s.dependency 'AWSCore', '2.1.2'
s.dependency 'Bolts', '~> 1.1.0'
s.dependency 'Mantle', '~> 1.4'

Expand Down
18 changes: 0 additions & 18 deletions AWSCloudWatch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@
BDF559151AB3747F0067F4F1 /* AWSCloudWatchService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchService.m; path = ../AWSCloudWatch/AWSCloudWatchService.m; sourceTree = "<group>"; };
BDF559161AB3747F0067F4F1 /* AWSCloudWatchModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSCloudWatchModel.h; path = ../AWSCloudWatch/AWSCloudWatchModel.h; sourceTree = "<group>"; };
BDF559171AB3747F0067F4F1 /* AWSCloudWatchModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchModel.m; path = ../AWSCloudWatch/AWSCloudWatchModel.m; sourceTree = "<group>"; };
C59C1FAFC8834FF806A5AC6C /* Pods-CloudWatch.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CloudWatch.release.xcconfig"; path = "Pods/Target Support Files/Pods-CloudWatch/Pods-CloudWatch.release.xcconfig"; sourceTree = "<group>"; };
CEE7DE681AC1E1330095C4B7 /* AWSCloudWatchService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSCloudWatchService.h; path = ../AWSCloudWatch/AWSCloudWatchService.h; sourceTree = "<group>"; };
CEF83ED71AD351E900620E1C /* monitoring-2010-08-01.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = "monitoring-2010-08-01.json"; path = "../../AWSCloudWatch/Resources/monitoring-2010-08-01.json"; sourceTree = "<group>"; };
CEF83ED91AD3521A00620E1C /* AWSCloudWatchTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchTests.m; path = ../AWSCloudWatchTests/AWSCloudWatchTests.m; sourceTree = "<group>"; };
CEF83EDA1AD3521A00620E1C /* AWSGeneralCloudWatchTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSGeneralCloudWatchTests.m; path = ../AWSCloudWatchTests/AWSGeneralCloudWatchTests.m; sourceTree = "<group>"; };
CEF83EDB1AD3521A00620E1C /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DDE2D6D6AC17259133A42839 /* Pods-AWSCloudWatch.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AWSCloudWatch.release.xcconfig"; path = "Pods/Target Support Files/Pods-AWSCloudWatch/Pods-AWSCloudWatch.release.xcconfig"; sourceTree = "<group>"; };
E29B50A66CC52E1928A68B66 /* Pods-CloudWatch.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CloudWatch.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CloudWatch/Pods-CloudWatch.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -112,8 +110,6 @@
A797C571EB41EF4D6BB1A9B2 /* Pods */ = {
isa = PBXGroup;
children = (
E29B50A66CC52E1928A68B66 /* Pods-CloudWatch.debug.xcconfig */,
C59C1FAFC8834FF806A5AC6C /* Pods-CloudWatch.release.xcconfig */,
12547097B9F79B38370F990A /* Pods-AWSCloudWatch.debug.xcconfig */,
DDE2D6D6AC17259133A42839 /* Pods-AWSCloudWatch.release.xcconfig */,
);
Expand Down Expand Up @@ -209,7 +205,6 @@
BDF558F51AB374250067F4F1 /* Frameworks */,
BDF558F61AB374250067F4F1 /* CopyFiles */,
BDF559121AB374690067F4F1 /* Headers */,
CE700D131AD36607008A227B /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -306,19 +301,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AWSCloudWatch/Pods-AWSCloudWatch-resources.sh\"\n";
showEnvVarsInLog = 0;
};
CE700D131AD36607008A227B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ -e \"XcodeCoverage/exportenv.sh\" ]; then\nXcodeCoverage/exportenv.sh\nfi";
};
DBC648979B2589BE74BE71F6 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatch/AWSCloudWatch.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatch/AWSCloudWatchModel.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatch/AWSCloudWatchModel.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatch/AWSCloudWatchService.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
4 changes: 2 additions & 2 deletions AWSCloudWatch/AWSCloudWatchService.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down Expand Up @@ -226,7 +226,7 @@ - (instancetype)initWithConfiguration:(AWSServiceConfiguration *)configuration {
_configuration.retryHandler = [[AWSCloudWatchRequestRetryHandler alloc] initWithMaximumRetryCount:_configuration.maxRetryCount];
_configuration.headers = @{@"Host" : _configuration.endpoint.hostName};

_networking = [AWSNetworking networking:_configuration];
_networking = [[AWSNetworking alloc] initWithConfiguration:_configuration];
}

return self;
Expand Down
47 changes: 46 additions & 1 deletion AWSCloudWatchTests/AWSCloudWatchTests.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down Expand Up @@ -38,6 +38,33 @@ - (void)tearDown {
[super tearDown];
}

//CloudWatch Test
- (void)testClockSkewCW {
[AWSTestUtility setupSwizzling];

XCTAssertFalse([NSDate aws_getRuntimeClockSkew], @"current RunTimeClockSkew is not zero!");
[AWSTestUtility setMockDate:[NSDate dateWithTimeIntervalSince1970:3600]];

AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];
XCTAssertNotNil(cloudWatch);

[[[cloudWatch listMetrics:nil] continueWithBlock:^id(BFTask *task) {
if (task.error) {
XCTFail(@"Error: [%@]", task.error);
}

if (task.result) {
XCTAssertTrue([task.result isKindOfClass:[AWSCloudWatchListMetricsOutput class]]);
AWSCloudWatchListMetricsOutput *listMetricsOutput = task.result;
XCTAssertNotNil(listMetricsOutput.metrics);
}

return nil;
}] waitUntilFinished];

[AWSTestUtility revertSwizzling];
}

- (void)testListMetrics {
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];

Expand All @@ -56,6 +83,24 @@ - (void)testListMetrics {
}] waitUntilFinished];
}

- (void)testDescribeAlarmHistory {
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];

AWSCloudWatchDescribeAlarmHistoryInput *input = [AWSCloudWatchDescribeAlarmHistoryInput new];
input.endDate = [NSDate date];

[[[cloudWatch describeAlarmHistory:input] continueWithBlock:^id(BFTask *task) {
XCTAssertNil(task.error);

AWSCloudWatchDescribeAlarmHistoryOutput *output = task.result;
XCTAssertTrue([output isKindOfClass:[AWSCloudWatchDescribeAlarmHistoryOutput class]]);
NSArray *items = output.alarmHistoryItems;
XCTAssertTrue(items.count > 0);

return nil;
}] waitUntilFinished];
}

- (void)testGetMetricStatisticsFailed {
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];

Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatchTests/AWSGeneralCloudWatchTests.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Expand Down
2 changes: 1 addition & 1 deletion AWSCore.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSCore'
s.version = '2.1.1'
s.version = '2.1.2'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand Down
Loading

0 comments on commit eaa3860

Please sign in to comment.