Skip to content

Commit d1d18ee

Browse files
author
Ed Paulosky
authored
test: enables service tests (#887)
* Enables service tests * Regenerates tests * Removes unnecessary service tests * Updates workflows to execute tests in parallel * ktline format
1 parent fac3186 commit d1d18ee

File tree

351 files changed

+3549
-1908
lines changed

Some content is hidden

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

351 files changed

+3549
-1908
lines changed

.github/workflows/codegen-build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
cat Package.swift
4747
./gradlew --stop
4848
swift build --build-tests
49-
swift test --skip-build
49+
swift test --skip-build --parallel

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
./scripts/generatePackageSwift.swift > Package.swift
5757
cat Package.swift
5858
swift build --build-tests
59-
swift test --skip-build
59+
swift test --skip-build --parallel
6060
- name: Commit Changes
6161
uses: EndBug/add-and-commit@v7
6262
with:

Package.swift

Lines changed: 338 additions & 339 deletions
Large diffs are not rendered by default.

Tests/Services/AWSACMPCATests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSACMPCA
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region af-south-1 with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

Tests/Services/AWSACMTests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSACM
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region af-south-1 with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

Tests/Services/AWSAPIGatewayTests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSAPIGateway
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region af-south-1 with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

Tests/Services/AWSARCZonalShiftTests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSARCZonalShift
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region us-gov-east-1 with FIPS enabled and DualStack enabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

Tests/Services/AWSAccessAnalyzerTests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSAccessAnalyzer
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region af-south-1 with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

Tests/Services/AWSAccountTests/EndpointResolverTest.swift

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSAccount
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region aws-global with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(
@@ -22,9 +28,9 @@ class EndpointResolverTest: CrtXCBaseTestCase {
2228
[
2329
"authSchemes": [
2430
[
25-
"signingRegion": "us-east-1",
31+
"signingName": "account",
2632
"name": "sigv4",
27-
"signingName": "account"
33+
"signingRegion": "us-east-1"
2834
] as [String: AnyHashable]
2935
] as [AnyHashable]
3036
]
@@ -110,9 +116,9 @@ class EndpointResolverTest: CrtXCBaseTestCase {
110116
[
111117
"authSchemes": [
112118
[
113-
"signingRegion": "us-east-1",
119+
"signingName": "account",
114120
"name": "sigv4",
115-
"signingName": "account"
121+
"signingRegion": "us-east-1"
116122
] as [String: AnyHashable]
117123
] as [AnyHashable]
118124
]
@@ -138,9 +144,9 @@ class EndpointResolverTest: CrtXCBaseTestCase {
138144
[
139145
"authSchemes": [
140146
[
141-
"signingRegion": "cn-northwest-1",
147+
"signingName": "account",
142148
"name": "sigv4",
143-
"signingName": "account"
149+
"signingRegion": "cn-northwest-1"
144150
] as [String: AnyHashable]
145151
] as [AnyHashable]
146152
]
@@ -226,9 +232,9 @@ class EndpointResolverTest: CrtXCBaseTestCase {
226232
[
227233
"authSchemes": [
228234
[
229-
"signingRegion": "cn-northwest-1",
235+
"signingName": "account",
230236
"name": "sigv4",
231-
"signingName": "account"
237+
"signingRegion": "cn-northwest-1"
232238
] as [String: AnyHashable]
233239
] as [AnyHashable]
234240
]

Tests/Services/AWSAlexaForBusinessTests/EndpointResolverTest.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
@testable import AWSAlexaForBusiness
44
import AWSClientRuntime
5+
import AwsCommonRuntimeKit
56
import ClientRuntime
67
import SmithyTestUtil
78
import XCTest
89

9-
class EndpointResolverTest: CrtXCBaseTestCase {
10+
class EndpointResolverTest: XCTestCase {
11+
12+
override class func setUp() {
13+
AwsCommonRuntimeKit.CommonRuntimeKit.initialize()
14+
}
15+
1016
/// For region us-east-1 with FIPS disabled and DualStack disabled
1117
func testResolve1() throws {
1218
let endpointParams = EndpointParams(

0 commit comments

Comments
 (0)