Skip to content

Commit 697310d

Browse files
Steven Yuansyall
authored andcommitted
feat(experimentalIdentityAndAuth): add @aws.auth#sigv4 back to generic tests
1 parent 5cf3bb9 commit 697310d

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

smithy-typescript-codegen-test/model/main.smithy

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ use smithy.waiters#waitable
99

1010
/// Provides weather forecasts.
1111
@fakeProtocol
12-
// feat(experimentalIdentityAndAuth): uncomment operations as individual
13-
// auth scheme support is implemented
1412
@httpApiKeyAuth(name: "X-Api-Key", in: "header")
1513
@httpBearerAuth
16-
// @sigv4(name: "weather")
17-
// @auth([sigv4])
14+
@sigv4(name: "weather")
15+
@auth([sigv4])
1816
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
1917
service Weather {
2018
version: "2006-03-01"
@@ -23,15 +21,15 @@ service Weather {
2321
GetCurrentTime
2422
// util-stream.integ.spec.ts
2523
Invoke
26-
// feat(experimentalIdentityAndAuth): uncomment operations as individual
27-
// auth scheme support is implemented
2824
// experimentalIdentityAndAuth
2925
OnlyHttpApiKeyAuth
3026
OnlyHttpApiKeyAuthOptional
3127
OnlyHttpBearerAuth
3228
OnlyHttpBearerAuthOptional
3329
OnlyHttpApiKeyAndBearerAuth
3430
OnlyHttpApiKeyAndBearerAuthReversed
31+
OnlySigv4Auth
32+
OnlySigv4AuthOptional
3533
SameAsService
3634
]
3735
}
@@ -44,6 +42,10 @@ operation OnlyHttpApiKeyAuth {}
4442
@auth([httpBearerAuth])
4543
operation OnlyHttpBearerAuth {}
4644

45+
@http(method: "GET", uri: "/OnlySigv4Auth")
46+
@auth([sigv4])
47+
operation OnlySigv4Auth {}
48+
4749
@http(method: "GET", uri: "/OnlyHttpApiKeyAndBearerAuth")
4850
@auth([httpApiKeyAuth, httpBearerAuth])
4951
operation OnlyHttpApiKeyAndBearerAuth {}
@@ -62,6 +64,11 @@ operation OnlyHttpApiKeyAuthOptional {}
6264
@optionalAuth
6365
operation OnlyHttpBearerAuthOptional {}
6466

67+
@http(method: "GET", uri: "/OnlySigv4AuthOptional")
68+
@auth([sigv4])
69+
@optionalAuth
70+
operation OnlySigv4AuthOptional {}
71+
6572
@http(method: "GET", uri: "/SameAsService")
6673
operation SameAsService {}
6774

0 commit comments

Comments
 (0)