Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
30
pkg/remotefileupload/aws_test.go
Normal file
30
pkg/remotefileupload/aws_test.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package remotefileupload_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"fiskerinc.com/modules/remotefileupload"
|
||||
"fiskerinc.com/modules/utils/envtool"
|
||||
|
||||
"fiskerinc.com/modules/testhelper"
|
||||
)
|
||||
|
||||
func TestNewAWSUploaderIntegration(t *testing.T) {
|
||||
t.Skip()
|
||||
|
||||
awsBucketName := envtool.GetEnv("AWS_BUCKET_NAME", "fisker-data-test")
|
||||
_ = remotefileupload.NewS3Uploader(awsBucketName)
|
||||
}
|
||||
|
||||
func TestAWSUploadIntegration(t *testing.T) {
|
||||
t.Skip()
|
||||
|
||||
awsBucketName := envtool.GetEnv("AWS_BUCKET_NAME", "fisker-data-test")
|
||||
s := remotefileupload.NewS3Uploader(awsBucketName)
|
||||
|
||||
_, err := s.Upload([]byte("testblock"), remotefileupload.LogPayload{Title: "vin", Value: "TESTVIN123"}, "TESTVIN123", "TESTVERSION123")
|
||||
if err != nil {
|
||||
t.Errorf(testhelper.TestErrorTemplate, "TestAzureUploadIntegration", "error", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user