Skip to content

Commit

Permalink
Add Go Server Codegen test
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Yuan committed Jan 29, 2024
1 parent 154fbae commit 8819a05
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions codegen/smithy-go-codegen-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ repositories {

dependencies {
implementation("software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion")
implementation("software.amazon.smithy:smithy-aws-traits:$smithyVersion")
implementation(project(":smithy-go-codegen"))
}
1 change: 1 addition & 0 deletions codegen/smithy-go-codegen-test/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use smithy.waiters#waitable
/// Provides weather forecasts.
@httpBearerAuth
@fakeProtocol
@aws.protocols#awsJson1_0
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
service Weather {
version: "2006-03-01",
Expand Down
7 changes: 7 additions & 0 deletions codegen/smithy-go-codegen-test/smithy-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"moduleVersion": "0.0.1",
"generateGoMod": true,
"goDirective": "1.18"
},
"go-server-codegen": {
"service": "example.weather#Weather",
"module": "github.com/aws/smithy-go/internal/tests/service/weather",
"moduleVersion": "0.0.1",
"generateGoMod": true,
"goDirective": "1.18"
}
}
}

0 comments on commit 8819a05

Please sign in to comment.