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 committed Aug 31, 2023
1 parent ecf6c0a commit 90cb5e3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions smithy-typescript-codegen-test/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use smithy.waiters#waitable
// auth scheme support is implemented
// @httpApiKeyAuth(name: "X-Api-Key", in: "header")
// @httpBearerAuth
// @sigv4(name: "weather")
@sigv4(name: "weather")
// @auth([sigv4])
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
service Weather {
Expand All @@ -28,10 +28,12 @@ service Weather {
// experimentalIdentityAndAuth
// OnlyHttpApiKeyAuth
// OnlyHttpBearerAuth
OnlySigv4Auth
// OnlyHttpApiKeyAndBearerAuth
// OnlyHttpApiKeyAndBearerAuthReversed
// OnlyHttpApiKeyAuthOptional
// SameAsService
OnlySigv4AuthOptional
SameAsService
]
}

Expand All @@ -43,6 +45,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 @@ -56,6 +62,11 @@ operation OnlyHttpApiKeyAndBearerAuthReversed {}
@optionalAuth
operation OnlyHttpApiKeyAuthOptional {}

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

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

Expand Down

0 comments on commit 90cb5e3

Please sign in to comment.