@@ -20,8 +20,10 @@ import (
2020
2121// Service information constants
2222const (
23- ServiceName = "scw" // Name of service.
24- EndpointsID = ServiceName // ID to look up a service endpoint with.
23+ ServiceName = "scw" // Name of service.
24+ EndpointsID = ServiceName // ID to look up a service endpoint with.
25+ fileContentStep2 = "This is a different content"
26+ fileContentStep1 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
2527)
2628
2729func TestAccObject_Basic (t * testing.T ) {
@@ -556,9 +558,6 @@ func TestAccObject_ByContent(t *testing.T) {
556558 defer tt .Cleanup ()
557559 bucketName := sdkacctest .RandomWithPrefix ("test-acc-scaleway-object-by-content" )
558560
559- fileContentStep1 := "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
560- fileContentStep2 := "This is a different content"
561-
562561 resource .ParallelTest (t , resource.TestCase {
563562 PreCheck : func () { acctest .PreCheck (t ) },
564563 ProviderFactories : tt .ProviderFactories ,
@@ -614,8 +613,6 @@ func TestAccObject_ByContentBase64(t *testing.T) {
614613 defer tt .Cleanup ()
615614 bucketName := sdkacctest .RandomWithPrefix ("test-acc-scaleway-object-by-content-base64" )
616615
617- fileContentStep1 := "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
618- fileContentStep2 := "This is a different content"
619616 fileEncodedStep1 := base64 .StdEncoding .EncodeToString ([]byte (fileContentStep1 ))
620617 fileEncodedStep2 := base64 .StdEncoding .EncodeToString ([]byte (fileContentStep2 ))
621618
@@ -689,9 +686,6 @@ func TestAccObject_SSECustomer(t *testing.T) {
689686 defer tt .Cleanup ()
690687 bucketName := sdkacctest .RandomWithPrefix ("test-acc-scaleway-object-sse-customer" )
691688
692- fileContentStep1 := "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
693- fileContentStep2 := "This is a different content"
694-
695689 resource .ParallelTest (t , resource.TestCase {
696690 PreCheck : func () { acctest .PreCheck (t ) },
697691 ProviderFactories : tt .ProviderFactories ,
0 commit comments