Skip to content

Commit eaa3860

Browse files
author
Zhu
committed
The AWS Mobile SDK for iOS 2.1.2.
1 parent e152106 commit eaa3860

File tree

438 files changed

+3474
-1867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+3474
-1867
lines changed

AWSAutoScaling.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'AWSAutoScaling'
4-
s.version = '2.1.1'
4+
s.version = '2.1.2'
55
s.summary = 'Amazon Web Services SDK for iOS.'
66

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

AWSAutoScaling.xcodeproj/project.pbxproj

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@
5454
/* End PBXCopyFilesBuildPhase section */
5555

5656
/* Begin PBXFileReference section */
57-
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>"; };
5857
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>"; };
5958
2177028105C432CA525715AC /* libPods-AWSAutoScaling.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AWSAutoScaling.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6059
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>"; };
61-
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>"; };
6260
BD00002F1AB8C4D2004496EF /* credentials.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = credentials.json; path = AWSCoreTests/credentials.json; sourceTree = SOURCE_ROOT; };
6361
BD0000471AB8E119004496EF /* AWSTestUtility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSTestUtility.h; path = AWSCoreTests/AWSTestUtility.h; sourceTree = SOURCE_ROOT; };
6462
BD0000481AB8E119004496EF /* AWSTestUtility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSTestUtility.m; path = AWSCoreTests/AWSTestUtility.m; sourceTree = SOURCE_ROOT; };
@@ -168,8 +166,6 @@
168166
EBF92C517A7A1B79B7969CD1 /* Pods */ = {
169167
isa = PBXGroup;
170168
children = (
171-
79E9484D437D744373824AB9 /* Pods-AutoScaling.debug.xcconfig */,
172-
00013F32235761F46692B77A /* Pods-AutoScaling.release.xcconfig */,
173169
3AFFABC8223BFC112AFCFB4E /* Pods-AWSAutoScaling.debug.xcconfig */,
174170
1DA626D8A5FE1C2560C78C72 /* Pods-AWSAutoScaling.release.xcconfig */,
175171
);
@@ -209,7 +205,6 @@
209205
BDB5DF191AB37A79002DD224 /* Frameworks */,
210206
BDB5DF1A1AB37A79002DD224 /* CopyFiles */,
211207
BDB5DF361AB37AA2002DD224 /* Headers */,
212-
CE700D121AD365F4008A227B /* ShellScript */,
213208
);
214209
buildRules = (
215210
);
@@ -306,19 +301,6 @@
306301
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AWSAutoScaling/Pods-AWSAutoScaling-resources.sh\"\n";
307302
showEnvVarsInLog = 0;
308303
};
309-
CE700D121AD365F4008A227B /* ShellScript */ = {
310-
isa = PBXShellScriptBuildPhase;
311-
buildActionMask = 2147483647;
312-
files = (
313-
);
314-
inputPaths = (
315-
);
316-
outputPaths = (
317-
);
318-
runOnlyForDeploymentPostprocessing = 0;
319-
shellPath = /bin/sh;
320-
shellScript = "if [ -e \"XcodeCoverage/exportenv.sh\" ]; then\nXcodeCoverage/exportenv.sh\nfi";
321-
};
322304
F4AE4BE2A5CB7D34DDDF57EF /* Check Pods Manifest.lock */ = {
323305
isa = PBXShellScriptBuildPhase;
324306
buildActionMask = 2147483647;

AWSAutoScaling/AWSAutoScaling.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSAutoScaling/AWSAutoScalingModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSAutoScaling/AWSAutoScalingModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSAutoScaling/AWSAutoScalingService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSAutoScaling/AWSAutoScalingService.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").
@@ -222,7 +222,7 @@ - (instancetype)initWithConfiguration:(AWSServiceConfiguration *)configuration {
222222
_configuration.retryHandler = [[AWSAutoScalingRequestRetryHandler alloc] initWithMaximumRetryCount:_configuration.maxRetryCount];
223223
_configuration.headers = @{@"Host" : _configuration.endpoint.hostName};
224224

225-
_networking = [AWSNetworking networking:_configuration];
225+
_networking = [[AWSNetworking alloc] initWithConfiguration:_configuration];
226226
}
227227

228228
return self;

AWSAutoScalingTests/AWSAutoScalingTests.m

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").
@@ -38,6 +38,32 @@ - (void)tearDown {
3838
[super tearDown];
3939
}
4040

41+
- (void)testClockSkewAS {
42+
[AWSTestUtility setupSwizzling];
43+
44+
XCTAssertFalse([NSDate aws_getRuntimeClockSkew], @"current RunTimeClockSkew is not zero!");
45+
[AWSTestUtility setMockDate:[NSDate dateWithTimeIntervalSince1970:3600]];
46+
47+
AWSAutoScaling *autoScaling = [AWSAutoScaling defaultAutoScaling];
48+
XCTAssertNotNil(autoScaling);
49+
50+
[[[autoScaling describeAccountLimits:nil] continueWithBlock:^id(BFTask *task) {
51+
if (task.error) {
52+
XCTFail(@"Error: [%@]", task.error);
53+
}
54+
55+
if (task.result) {
56+
XCTAssertTrue([task.result isKindOfClass:[AWSAutoScalingDescribeAccountLimitsAnswer class]]);
57+
AWSAutoScalingDescribeAccountLimitsAnswer *describeAccountLimitsAnswer = task.result;
58+
XCTAssertNotNil(describeAccountLimitsAnswer.maxNumberOfAutoScalingGroups);
59+
}
60+
61+
return nil;
62+
}] waitUntilFinished];
63+
64+
[AWSTestUtility revertSwizzling];
65+
}
66+
4167
- (void)testDescribeAccountLimits {
4268
AWSAutoScaling *autoScaling = [AWSAutoScaling defaultAutoScaling];
4369

AWSAutoScalingTests/AWSGeneralAutoScalingTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCloudWatch.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'AWSCloudWatch'
4-
s.version = '2.1.1'
4+
s.version = '2.1.2'
55
s.summary = 'Amazon Web Services SDK for iOS.'
66

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

AWSCloudWatch.xcodeproj/project.pbxproj

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@
6969
BDF559151AB3747F0067F4F1 /* AWSCloudWatchService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchService.m; path = ../AWSCloudWatch/AWSCloudWatchService.m; sourceTree = "<group>"; };
7070
BDF559161AB3747F0067F4F1 /* AWSCloudWatchModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSCloudWatchModel.h; path = ../AWSCloudWatch/AWSCloudWatchModel.h; sourceTree = "<group>"; };
7171
BDF559171AB3747F0067F4F1 /* AWSCloudWatchModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchModel.m; path = ../AWSCloudWatch/AWSCloudWatchModel.m; sourceTree = "<group>"; };
72-
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>"; };
7372
CEE7DE681AC1E1330095C4B7 /* AWSCloudWatchService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AWSCloudWatchService.h; path = ../AWSCloudWatch/AWSCloudWatchService.h; sourceTree = "<group>"; };
7473
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>"; };
7574
CEF83ED91AD3521A00620E1C /* AWSCloudWatchTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSCloudWatchTests.m; path = ../AWSCloudWatchTests/AWSCloudWatchTests.m; sourceTree = "<group>"; };
7675
CEF83EDA1AD3521A00620E1C /* AWSGeneralCloudWatchTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AWSGeneralCloudWatchTests.m; path = ../AWSCloudWatchTests/AWSGeneralCloudWatchTests.m; sourceTree = "<group>"; };
7776
CEF83EDB1AD3521A00620E1C /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7877
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>"; };
79-
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>"; };
8078
/* End PBXFileReference section */
8179

8280
/* Begin PBXFrameworksBuildPhase section */
@@ -112,8 +110,6 @@
112110
A797C571EB41EF4D6BB1A9B2 /* Pods */ = {
113111
isa = PBXGroup;
114112
children = (
115-
E29B50A66CC52E1928A68B66 /* Pods-CloudWatch.debug.xcconfig */,
116-
C59C1FAFC8834FF806A5AC6C /* Pods-CloudWatch.release.xcconfig */,
117113
12547097B9F79B38370F990A /* Pods-AWSCloudWatch.debug.xcconfig */,
118114
DDE2D6D6AC17259133A42839 /* Pods-AWSCloudWatch.release.xcconfig */,
119115
);
@@ -209,7 +205,6 @@
209205
BDF558F51AB374250067F4F1 /* Frameworks */,
210206
BDF558F61AB374250067F4F1 /* CopyFiles */,
211207
BDF559121AB374690067F4F1 /* Headers */,
212-
CE700D131AD36607008A227B /* ShellScript */,
213208
);
214209
buildRules = (
215210
);
@@ -306,19 +301,6 @@
306301
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AWSCloudWatch/Pods-AWSCloudWatch-resources.sh\"\n";
307302
showEnvVarsInLog = 0;
308303
};
309-
CE700D131AD36607008A227B /* ShellScript */ = {
310-
isa = PBXShellScriptBuildPhase;
311-
buildActionMask = 2147483647;
312-
files = (
313-
);
314-
inputPaths = (
315-
);
316-
outputPaths = (
317-
);
318-
runOnlyForDeploymentPostprocessing = 0;
319-
shellPath = /bin/sh;
320-
shellScript = "if [ -e \"XcodeCoverage/exportenv.sh\" ]; then\nXcodeCoverage/exportenv.sh\nfi";
321-
};
322304
DBC648979B2589BE74BE71F6 /* Check Pods Manifest.lock */ = {
323305
isa = PBXShellScriptBuildPhase;
324306
buildActionMask = 2147483647;

AWSCloudWatch/AWSCloudWatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCloudWatch/AWSCloudWatchModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCloudWatch/AWSCloudWatchModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCloudWatch/AWSCloudWatchService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCloudWatch/AWSCloudWatchService.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").
@@ -226,7 +226,7 @@ - (instancetype)initWithConfiguration:(AWSServiceConfiguration *)configuration {
226226
_configuration.retryHandler = [[AWSCloudWatchRequestRetryHandler alloc] initWithMaximumRetryCount:_configuration.maxRetryCount];
227227
_configuration.headers = @{@"Host" : _configuration.endpoint.hostName};
228228

229-
_networking = [AWSNetworking networking:_configuration];
229+
_networking = [[AWSNetworking alloc] initWithConfiguration:_configuration];
230230
}
231231

232232
return self;

AWSCloudWatchTests/AWSCloudWatchTests.m

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").
@@ -38,6 +38,33 @@ - (void)tearDown {
3838
[super tearDown];
3939
}
4040

41+
//CloudWatch Test
42+
- (void)testClockSkewCW {
43+
[AWSTestUtility setupSwizzling];
44+
45+
XCTAssertFalse([NSDate aws_getRuntimeClockSkew], @"current RunTimeClockSkew is not zero!");
46+
[AWSTestUtility setMockDate:[NSDate dateWithTimeIntervalSince1970:3600]];
47+
48+
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];
49+
XCTAssertNotNil(cloudWatch);
50+
51+
[[[cloudWatch listMetrics:nil] continueWithBlock:^id(BFTask *task) {
52+
if (task.error) {
53+
XCTFail(@"Error: [%@]", task.error);
54+
}
55+
56+
if (task.result) {
57+
XCTAssertTrue([task.result isKindOfClass:[AWSCloudWatchListMetricsOutput class]]);
58+
AWSCloudWatchListMetricsOutput *listMetricsOutput = task.result;
59+
XCTAssertNotNil(listMetricsOutput.metrics);
60+
}
61+
62+
return nil;
63+
}] waitUntilFinished];
64+
65+
[AWSTestUtility revertSwizzling];
66+
}
67+
4168
- (void)testListMetrics {
4269
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];
4370

@@ -56,6 +83,24 @@ - (void)testListMetrics {
5683
}] waitUntilFinished];
5784
}
5885

86+
- (void)testDescribeAlarmHistory {
87+
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];
88+
89+
AWSCloudWatchDescribeAlarmHistoryInput *input = [AWSCloudWatchDescribeAlarmHistoryInput new];
90+
input.endDate = [NSDate date];
91+
92+
[[[cloudWatch describeAlarmHistory:input] continueWithBlock:^id(BFTask *task) {
93+
XCTAssertNil(task.error);
94+
95+
AWSCloudWatchDescribeAlarmHistoryOutput *output = task.result;
96+
XCTAssertTrue([output isKindOfClass:[AWSCloudWatchDescribeAlarmHistoryOutput class]]);
97+
NSArray *items = output.alarmHistoryItems;
98+
XCTAssertTrue(items.count > 0);
99+
100+
return nil;
101+
}] waitUntilFinished];
102+
}
103+
59104
- (void)testGetMetricStatisticsFailed {
60105
AWSCloudWatch *cloudWatch = [AWSCloudWatch defaultCloudWatch];
61106

AWSCloudWatchTests/AWSGeneralCloudWatchTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License").

AWSCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'AWSCore'
4-
s.version = '2.1.1'
4+
s.version = '2.1.2'
55
s.summary = 'Amazon Web Services SDK for iOS.'
66

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

0 commit comments

Comments
 (0)