-
Notifications
You must be signed in to change notification settings - Fork 19
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 #706
Conversation
This reverts commit 0b49193.
find .. -name "shim.go" | xargs sed -i "" 's/(_static \*CompanionStruct_Default___)//g' | ||
find .. -name "api_client.go" -exec sed -i '' 's|"github.com/aws/aws-encryption-sdk/ESDK"|ESDK "github.com/aws/aws-encryption-sdk/EncryptionSdk"|g' {} \; | ||
find .. -name "api_client.go" -exec sed -i '' 's|"github.com/aws/aws-encryption-sdk/testvectors/ESDK"|ESDK "github.com/aws/aws-encryption-sdk/testvectors"|g' {} \; |
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.
Make sure these work on all the platforms.
@@ -37,7 +37,7 @@ module {:options "-functionSyntax:4"} WriteEsdkJsonManifests { | |||
function EncryptionContextToJson(key: string, m: mplTypes.EncryptionContext) | |||
: Result<seq<(string, JSON)>, string> | |||
{ | |||
var keys := SortedSets.ComputeSetToSequence(m.Keys); | |||
var keys := SortedSets.ComputeSetToOrderedSequence2(m.Keys, (a, b) => a < b); |
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.
Why this change?
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.
Recently ComputeSetToSequence
is made method in MPL because the results are not deterministic and in Dafny we cannot call a method from a function. Our MPL submodule contains this change.
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.
Also, on recent commit to merge Rust work to main, this function was updated in mainline: https://github.com/aws/aws-encryption-sdk-dafny/blob/mainline/TestVectors/dafny/TestVectors/src/WriteEsdkJsonManifests.dfy#L40
Closing this as I merged this to main. |
Issue #, if available:
Description of changes:
How to test this?
There are two ways to test it. Use either (i) or (ii).
make test_go
test_generate_vectors_go
test_encrypt_vectors_go
test_decrypt_encrypt_vectors_go
Squash/merge commit message, if applicable:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.