-
Notifications
You must be signed in to change notification settings - Fork 12
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(Test Vector): Add interop test for Go #1071
Open
rishav-karanjit
wants to merge
37
commits into
Golang/dev
Choose a base branch
from
testTestVector
base: Golang/dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
096d426
Init test vector
rishav-karanjit 06e04c2
Add extern
rishav-karanjit 57cedf6
Add GetTestVectorExecutionDirectory extern
rishav-karanjit 12ed075
rm redundant
rishav-karanjit 4037f87
fix path
rishav-karanjit fce02df
Fix externs
rishav-karanjit d6017fb
Update makefile
rishav-karanjit c9a88c2
replace dafny runtime Go for now
rishav-karanjit 6971d70
replace dafny runtime Go for now
rishav-karanjit 7a2f114
Commit runtime --revert later
rishav-karanjit cbdb72f
Update error message
rishav-karanjit 49b3291
Revert "Commit runtime --revert later"
rishav-karanjit f7be994
Merge branch 'Golang/dev' of https://github.com/aws/aws-cryptographic…
rishav-karanjit c5d73e3
Remove replace dafny runtime Go
rishav-karanjit fe27bc5
Use 4.9.1 dafny runtime Go
rishav-karanjit e4100e0
formatting
rishav-karanjit 03961b6
auto commit
rishav-karanjit 77fa487
go mod tidy
rishav-karanjit c47ac54
bump to latest head
rishav-karanjit 110122c
auto commit
rishav-karanjit cd3b081
Merge branch 'Golang/dev' of https://github.com/aws/aws-cryptographic…
rishav-karanjit fd30e27
auto commit
rishav-karanjit 6b03134
auto commit
rishav-karanjit 144ca54
auto commit
rishav-karanjit 175beca
auto commit
rishav-karanjit dcd75b4
auto commit
rishav-karanjit f07562f
auto commit
rishav-karanjit b4c6cc4
auto commit
rishav-karanjit 880f9a1
auto commit
rishav-karanjit b513f09
Update externs.go
rishav-karanjit 0f47d43
Update externs.go
rishav-karanjit e1b1fcc
auto commit
rishav-karanjit 2aec202
auto commit
rishav-karanjit 69f14f3
Update TestVectorsAwsCryptographicMaterialProviders/Makefile
rishav-karanjit e075d91
auto commit
rishav-karanjit 97f3a19
auto commit
rishav-karanjit fe19dfb
Update smithy-dafny submodule to latest commit in main
rishav-karanjit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...terialProviders/runtimes/go/ImplementationFromDafny-go/WrappedMaterialProviders/extern.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package WrappedMaterialProviders | ||
|
||
import ( | ||
"github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" | ||
"github.com/aws/aws-cryptographic-material-providers-library/mpl/WrappedAwsCryptographyMaterialProvidersService" | ||
"github.com/dafny-lang/DafnyStandardLibGo/Wrappers" | ||
) | ||
|
||
func (_static CompanionStruct_Default___) WrappedMaterialProviders(config AwsCryptographyMaterialProvidersTypes.MaterialProvidersConfig) Wrappers.Result { | ||
return WrappedAwsCryptographyMaterialProvidersService.WrappedMaterialProviders(config) | ||
} |
41 changes: 41 additions & 0 deletions
41
TestVectorsAwsCryptographicMaterialProviders/runtimes/go/ImplementationFromDafny-go/go.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
module github.com/aws/aws-cryptographic-material-providers-library/testvectors | ||
|
||
go 1.23.2 | ||
|
||
replace ( | ||
github.com/aws/aws-cryptographic-material-providers-library/dynamodb v0.0.0 => ../../../../ComAmazonawsDynamodb/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/kms v0.0.0 => ../../../../ComAmazonawsKms/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/mpl v0.0.0 => ../../../../AwsCryptographicMaterialProviders/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/primitives v0.0.0 => ../../../../AwsCryptographyPrimitives/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/dafny-lang/DafnyStandardLibGo => ../../../../StandardLibrary/runtimes/go/ImplementationFromDafny-go/ | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-cryptographic-material-providers-library/dynamodb v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/kms v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/mpl v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/primitives v0.0.0 | ||
github.com/aws/aws-sdk-go-v2/service/kms v1.36.0 | ||
github.com/dafny-lang/DafnyRuntimeGo/v4 v4.9.1 | ||
github.com/dafny-lang/DafnyStandardLibGo v0.0.0 | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go-v2 v1.31.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/config v1.27.37 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.35 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.35.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.19 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.23.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.31.1 // indirect | ||
github.com/aws/smithy-go v1.21.0 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
) |
48 changes: 48 additions & 0 deletions
48
TestVectorsAwsCryptographicMaterialProviders/runtimes/go/ImplementationFromDafny-go/go.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
github.com/aws/aws-sdk-go-v2 v1.31.0 h1:3V05LbxTSItI5kUqNwhJrrrY1BAXxXt0sN0l72QmG5U= | ||
github.com/aws/aws-sdk-go-v2 v1.31.0/go.mod h1:ztolYtaEUtdpf9Wftr31CJfLVjOnD/CVRkKOOYgF8hA= | ||
github.com/aws/aws-sdk-go-v2/config v1.27.37 h1:xaoIwzHVuRWRHFI0jhgEdEGc8xE1l91KaeRDsWEIncU= | ||
github.com/aws/aws-sdk-go-v2/config v1.27.37/go.mod h1:S2e3ax9/8KnMSyRVNd3sWTKs+1clJ2f1U6nE0lpvQRg= | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.35 h1:7QknrZhYySEB1lEXJxGAmuD5sWwys5ZXNr4m5oEz0IE= | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.35/go.mod h1:8Vy4kk7at4aPSmibr7K+nLTzG6qUQAUO4tW49fzUV4E= | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14 h1:C/d03NAmh8C4BZXhuRNboF/DqhBkBCeDiJDcaqIT5pA= | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14/go.mod h1:7I0Ju7p9mCIdlrfS+JCgqcYD0VXz/N4yozsox+0o078= | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18 h1:kYQ3H1u0ANr9KEKlGs/jTLrBFPo8P8NaH/w7A01NeeM= | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18/go.mod h1:r506HmK5JDUh9+Mw4CfGJGSSoqIiLCndAuqXuhbv67Y= | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18 h1:Z7IdFUONvTcvS7YuhtVxN99v2cCoHRXOS4mTr0B/pUc= | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18/go.mod h1:DkKMmksZVVyat+Y+r1dEOgJEfUeA7UngIHWeKsi0yNc= | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ= | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc= | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.35.1 h1:DDN8yqYzFUDy2W5zk3tLQNKaO/1t0h3fNixPJacu264= | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.35.1/go.mod h1:k5XW8MoMxsNZ20RJmsokakvENUwQyjv69R9GqrI4xdQ= | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5 h1:QFASJGfT8wMXtuP3D5CRmMjARHv9ZmzFUMJznHDOY3w= | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5/go.mod h1:QdZ3OmoIjSX+8D1OPAzPxDfjXASbBMDsz9qvtyIhtik= | ||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.19 h1:dOxqOlOEa2e2heC/74+ZzcJOa27+F1aXFZpYgY/4QfA= | ||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.19/go.mod h1:aV6U1beLFvk3qAgognjS3wnGGoDId8hlPEiBsLHXVZE= | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20 h1:Xbwbmk44URTiHNx6PNo0ujDE6ERlsCKJD3u1zfnzAPg= | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20/go.mod h1:oAfOFzUB14ltPZj1rWwRc3d/6OgD76R8KlvU3EqM9Fg= | ||
github.com/aws/aws-sdk-go-v2/service/kms v1.36.0 h1:jwWMpQ/1obJRdHaix9k10zWSnSMZGdDTZIDiS5CGzq8= | ||
github.com/aws/aws-sdk-go-v2/service/kms v1.36.0/go.mod h1:OHmlX4+o0XIlJAQGAHPIy0N9yZcYS/vNG+T7geSNcFw= | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.23.1 h1:2jrVsMHqdLD1+PA4BA6Nh1eZp0Gsy3mFSB5MxDvcJtU= | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.23.1/go.mod h1:XRlMvmad0ZNL+75C5FYdMvbbLkd6qiqz6foR1nA1PXY= | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.1 h1:0L7yGCg3Hb3YQqnSgBTZM5wepougtL1aEccdcdYhHME= | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.1/go.mod h1:FnvDM4sfa+isJ3kDXIzAB9GAwVSzFzSy97uZ3IsHo4E= | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.31.1 h1:8K0UNOkZiK9Uh3HIF6Bx0rcNCftqGCeKmOaR7Gp5BSo= | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.31.1/go.mod h1:yMWe0F+XG0DkRZK5ODZhG7BEFYhLXi2dqGsv6tX0cgI= | ||
github.com/aws/smithy-go v1.21.0 h1:H7L8dtDRk0P1Qm6y0ji7MCYMQObJ5R9CRpyPhRUkLYA= | ||
github.com/aws/smithy-go v1.21.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= | ||
github.com/dafny-lang/DafnyRuntimeGo/v4 v4.9.1 h1:dOgaw3i0I9nWKPjfXYzEfgWsVRJykL6FA18DErvQiJQ= | ||
github.com/dafny-lang/DafnyRuntimeGo/v4 v4.9.1/go.mod h1:l2Tm4N2DKuq3ljONC2vOATeM9PUpXbIc8SgXdwwqEto= | ||
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= | ||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= | ||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= | ||
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= | ||
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= | ||
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= | ||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= |
19 changes: 19 additions & 0 deletions
19
...aterialProviders/runtimes/go/TestsFromDafny-go/TestWrappedMaterialProvidersMain/extern.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package TestWrappedMaterialProvidersMain | ||
|
||
import ( | ||
os "os" | ||
|
||
"github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" | ||
) | ||
|
||
// TODO: Remove this once Dafny bug is fixed. | ||
// Dafny bug: https://t.corp.amazon.com/9a9028fd-2711-4843-b8f0-09965f7e61a7/communication#f03694be-7410-47f9-866d-e43093b018f9 | ||
var m_TestWrappedMaterialProvidersMain = CompanionStruct_Default___{} | ||
|
||
func (CompanionStruct_Default___) GetTestVectorExecutionDirectory() dafny.Sequence { | ||
cwd, err := os.Getwd() | ||
if err != nil { | ||
panic(err) | ||
} | ||
return dafny.SeqOfString(cwd + "/../../../") | ||
} |
43 changes: 43 additions & 0 deletions
43
TestVectorsAwsCryptographicMaterialProviders/runtimes/go/TestsFromDafny-go/go.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module github.com/aws/aws-cryptographic-material-providers-library/testvectors/test | ||
|
||
go 1.23.2 | ||
|
||
replace ( | ||
github.com/aws/aws-cryptographic-material-providers-library/dynamodb v0.0.0 => ../../../../ComAmazonawsDynamodb/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/kms v0.0.0 => ../../../../ComAmazonawsKms/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/mpl v0.0.0 => ../../../../AwsCryptographicMaterialProviders/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/primitives v0.0.0 => ../../../../AwsCryptographyPrimitives/runtimes/go/ImplementationFromDafny-go/ | ||
github.com/aws/aws-cryptographic-material-providers-library/testvectors v0.0.0 => ../ImplementationFromDafny-go | ||
github.com/dafny-lang/DafnyStandardLibGo => ../../../../StandardLibrary/runtimes/go/ImplementationFromDafny-go/ | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-cryptographic-material-providers-library/dynamodb v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/kms v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/mpl v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/primitives v0.0.0 | ||
github.com/aws/aws-cryptographic-material-providers-library/testvectors v0.0.0 | ||
github.com/aws/aws-sdk-go-v2/service/kms v1.36.0 | ||
github.com/dafny-lang/DafnyRuntimeGo/v4 v4.9.1 | ||
github.com/dafny-lang/DafnyStandardLibGo v0.0.0 | ||
) | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go-v2 v1.31.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/config v1.27.37 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.35 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.35.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.19 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.23.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.31.1 // indirect | ||
github.com/aws/smithy-go v1.21.0 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a link to the broken windows CI sim.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in this PR: #1157 because I had to make PR to main