Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update testcases to reflect operation doc codegen changes.kt #1074

Merged
merged 16 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshall
val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift")
var expected = """
extension EventStreamTestClient: EventStreamTestClientProtocol {
/// This operation is cool.
///
/// - Parameter TestStreamOpInput : [no documentation found]
///
/// - Returns: `TestStreamOpOutputResponse` : [no documentation found]
///
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
///
/// __Possible Exceptions:__
/// - `SomeError` : You don't have permission.
public func testStreamOp(input: TestStreamOpInput) async throws -> TestStreamOpOutputResponse
{
let context = ClientRuntime.HttpContextBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class AWSQueryOperationStackTest {
val expectedContents =
"""
extension QueryProtocolClient: QueryProtocolClientProtocol {
/// This is a very cool operation.
///
/// - Parameter NoInputAndOutputInput : [no documentation found]
///
/// - Returns: `NoInputAndOutputOutputResponse` : [no documentation found]
public func noInputAndOutput(input: NoInputAndOutputInput) async throws -> NoInputAndOutputOutputResponse
{
let context = ClientRuntime.HttpContextBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ service AwsQuery {
]
}

@documentation("This is a very cool operation.")
operation NoInputAndOutput {
input: NoInputAndOutputInput,
output: NoInputAndOutputOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use aws.auth#sigv4
@service(sdkId: "EventStreamTest")
service TestService { version: "123", operations: [TestStreamOp] }

@documentation("This operation is cool.")
@http(method: "POST", uri: "/test")
operation TestStreamOp {
input: TestStreamInputOutput,
Expand All @@ -22,6 +23,7 @@ structure TestStreamInputOutput {
value: TestStream
}

@documentation("You don't have permission.")
@error("client")
structure SomeError {
Message: String,
Expand Down