Skip to content

Commit

Permalink
Remove http bindings from white_label (not required for rpc style Tes…
Browse files Browse the repository at this point in the history
…tProtocol)
  • Loading branch information
alextwoods committed Jul 30, 2024
1 parent 1c1e520 commit efd93ed
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,25 @@ apply WhiteLabel @httpCustomAuth(signerProperty: "signer", identityProperty: "id
apply WhiteLabel @auth([httpApiKeyAuth, httpBasicAuth, httpBearerAuth, httpDigestAuth, httpCustomAuth])

@auth([httpBasicAuth])
@http(method: "POST", uri: "/http_basic_auth")
operation HttpBasicAuth {}

@auth([httpDigestAuth])
@http(method: "POST", uri: "/http_digest_auth")
operation HttpDigestAuth {}

@auth([httpBearerAuth])
@http(method: "POST", uri: "/http_bearer_auth")
operation HttpBearerAuth {}

@auth([httpApiKeyAuth])
@http(method: "POST", uri: "/http_api_key_auth")
operation HttpApiKeyAuth {}

@optionalAuth
@http(method: "POST", uri: "/optional_auth")
operation OptionalAuth {}

@auth([])
@http(method: "POST", uri: "/no_auth")
operation NoAuth {}

@auth([httpBasicAuth, httpDigestAuth, httpBearerAuth, httpApiKeyAuth])
@http(method: "POST", uri: "/ordered_auth")
operation OrderedAuth {}

@auth([httpCustomAuth])
@http(method: "POST", uri: "/custom_auth")
operation CustomAuth {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace smithy.ruby.tests
@requestCompression(
encodings: ["gzip"]
)
@http(method: "POST", uri: "/request_compression")
operation RequestCompression {
input: RequestCompressionInput
}
Expand All @@ -15,7 +14,6 @@ operation RequestCompression {
@requestCompression(
encodings: ["gzip"]
)
@http(method: "POST", uri: "/request_compression_streaming")
operation RequestCompressionStreaming {
input: RequestCompressionStreamingInput
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$version: "2.0"
namespace smithy.ruby.tests

@suppress(["HttpBindingsMissing"])
operation DefaultsTest {
input:= {
defaults: Defaults
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ use smithy.rules#contextParam
use smithy.rules#staticContextParams

@endpoint(hostPrefix: "foo.")
@http(method: "POST", uri: "/endpoint")
operation EndpointOperation {}

@suppress(["UnstableTrait"])
@endpoint(hostPrefix: "foo.{labelMember}.")
@staticContextParams(Dataplane: {value: true})
@http(method: "POST", uri: "/endpoint_with_host_label_operation")
operation EndpointWithHostLabelOperation {
input: EndpointWithHostLabelOperationInput,
}
Expand All @@ -28,10 +26,8 @@ structure EndpointWithHostLabelOperationInput {

@suppress(["UnstableTrait"])
@staticContextParams(Dataplane: {value: true})
@http(method: "POST", uri: "/dataplane_endpoint")
operation DataplaneEndpoint {}

@http(method: "POST", uri: "/resource_endpoint")
operation ResourceEndpoint {
input: ResourceEndpointInput
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ service WhiteLabel {
]
}

@http(method: "POST", uri: "/kitchen_sink")
operation KitchenSink {
input: KitchenSinkInputOutput,
output: KitchenSinkInputOutput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ $version: "2.0"

namespace smithy.ruby.tests

@http(method: "POST", uri: "/mix_in_test")
operation MixinTest {
// The generated shape name is GetUserInput
input := {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
$version: "2.0"
namespace smithy.ruby.tests

@suppress(["HttpBindingsMissing"])
@paginated(inputToken: "nextToken", outputToken: "nextToken")
operation PaginatorsTest {
input: PaginatorsTestInput,
output: PaginatorsTestOutput
}

@suppress(["HttpBindingsMissing"])
@paginated(inputToken: "nextToken", outputToken: "nextToken", items: "items")
operation PaginatorsTestWithItems {
input: PaginatorsTestInput,
Expand All @@ -24,7 +22,6 @@ structure PaginatorsTestOutput {
items: Items
}

@suppress(["HttpBindingsMissing"])
@paginated(inputToken: "__nextToken", outputToken: "__wrapper.__123nextToken", items: "__items")
operation __PaginatorsTestWithBadNames {
input: __PaginatorsTestWithBadNamesInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ $version: "2.0"

namespace smithy.ruby.tests

@http(method: "POST", uri: "/relative_middleware")
operation RelativeMiddleware {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$version: "2.0"
namespace smithy.ruby.tests

@http(method: "POST", uri: "/streaming")
operation Streaming {
input: StreamingInput,
output: StreamingOutput,
Expand All @@ -24,7 +23,6 @@ structure StreamingOutput {
@streaming
blob StreamingBlob

@http(method: "POST", uri: "/streaming_with_length")
operation StreamingWithLength {
input: StreamingWithLengthInput,
}
Expand Down

0 comments on commit efd93ed

Please sign in to comment.