Add mocks and interfaces for testing SQS rendezvous

Co-authored-by: Michael Pu <michael.pu@uwaterloo.ca>
This commit is contained in:
Anthony Chang 2024-01-12 18:32:31 -05:00 committed by Cecylia Bocovich
parent 8fb17de152
commit f3b062ddb2
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
7 changed files with 262 additions and 4 deletions

View file

@ -15,12 +15,13 @@ import (
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/sqs"
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/sqsclient"
)
type sqsRendezvous struct {
transport http.RoundTripper
sqsClientID string
sqsClient *sqs.Client
sqsClient sqsclient.SQSClient
sqsURL *url.URL
}