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

Enable RawHandler test #385

Merged
merged 1 commit into from
Nov 2, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: "Features integration test (sdk-test-suite version ${{ matrix.sdk-test-suite }})"
strategy:
matrix:
sdk-test-suite: [ "2.0" ]
sdk-test-suite: [ "2.1" ]
permissions:
contents: read
issues: read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class TestUtilsServiceImpl : TestUtilsService {
return context.request().headers()
}

override suspend fun rawEcho(context: Context, input: ByteArray): ByteArray {
return input
}

override suspend fun createAwakeableAndAwaitIt(
ctx: Context,
req: CreateAwakeableAndAwaitItRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package dev.restate.sdk.testservices.contracts

import dev.restate.sdk.annotation.Handler
import dev.restate.sdk.annotation.Raw
import dev.restate.sdk.annotation.Service
import dev.restate.sdk.kotlin.Context
import kotlinx.serialization.SerialName
Expand Down Expand Up @@ -57,6 +58,9 @@ interface TestUtilsService {
/** Echo ingress headers */
@Handler suspend fun echoHeaders(context: Context): Map<String, String>

/** Just echo */
@Handler @Raw suspend fun rawEcho(context: Context, @Raw input: ByteArray): ByteArray

/** Create an awakeable, register it to AwakeableHolder#hold, then await it. */
@Handler
suspend fun createAwakeableAndAwaitIt(
Expand Down
Loading