Skip to content

Commit

Permalink
feat(experimentalIdentityAndAuth): add @aws.auth#sigv4 back to gene…
Browse files Browse the repository at this point in the history
…ric tests
  • Loading branch information
Steven Yuan authored and syall committed Sep 1, 2023
1 parent 5cf3bb9 commit 697310d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions smithy-typescript-codegen-test/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ use smithy.waiters#waitable

/// Provides weather forecasts.
@fakeProtocol
// feat(experimentalIdentityAndAuth): uncomment operations as individual
// auth scheme support is implemented
@httpApiKeyAuth(name: "X-Api-Key", in: "header")
@httpBearerAuth
// @sigv4(name: "weather")
// @auth([sigv4])
@sigv4(name: "weather")
@auth([sigv4])
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
service Weather {
version: "2006-03-01"
Expand All @@ -23,15 +21,15 @@ service Weather {
GetCurrentTime
// util-stream.integ.spec.ts
Invoke
// feat(experimentalIdentityAndAuth): uncomment operations as individual
// auth scheme support is implemented
// experimentalIdentityAndAuth
OnlyHttpApiKeyAuth
OnlyHttpApiKeyAuthOptional
OnlyHttpBearerAuth
OnlyHttpBearerAuthOptional
OnlyHttpApiKeyAndBearerAuth
OnlyHttpApiKeyAndBearerAuthReversed
OnlySigv4Auth
OnlySigv4AuthOptional
SameAsService
]
}
Expand All @@ -44,6 +42,10 @@ operation OnlyHttpApiKeyAuth {}
@auth([httpBearerAuth])
operation OnlyHttpBearerAuth {}

@http(method: "GET", uri: "/OnlySigv4Auth")
@auth([sigv4])
operation OnlySigv4Auth {}

@http(method: "GET", uri: "/OnlyHttpApiKeyAndBearerAuth")
@auth([httpApiKeyAuth, httpBearerAuth])
operation OnlyHttpApiKeyAndBearerAuth {}
Expand All @@ -62,6 +64,11 @@ operation OnlyHttpApiKeyAuthOptional {}
@optionalAuth
operation OnlyHttpBearerAuthOptional {}

@http(method: "GET", uri: "/OnlySigv4AuthOptional")
@auth([sigv4])
@optionalAuth
operation OnlySigv4AuthOptional {}

@http(method: "GET", uri: "/SameAsService")
operation SameAsService {}

Expand Down

0 comments on commit 697310d

Please sign in to comment.