@@ -10,6 +10,7 @@ import (
1010 "github.com/apache/arrow/go/v15/arrow"
1111 "github.com/apache/arrow/go/v15/arrow/array"
1212 "github.com/apache/arrow/go/v15/arrow/memory"
13+ spec "github.com/cloudquery/cloudquery/plugins/destination/gcs/client/spec"
1314 "github.com/cloudquery/filetypes/v4"
1415 "github.com/cloudquery/plugin-sdk/v4/message"
1516 "github.com/cloudquery/plugin-sdk/v4/plugin"
@@ -26,29 +27,27 @@ func TestPlugin(t *testing.T) {
2627 filetypes .FormatTypeJSON ,
2728 filetypes .FormatTypeParquet ,
2829 } {
29- spec := Spec {
30+ s := spec. Spec {
3031 Bucket : bucket ,
3132 Path : t .TempDir (),
3233 NoRotate : true ,
33- FileSpec : & filetypes.FileSpec {
34- Format : ft ,
35- },
34+ FileSpec : filetypes.FileSpec {Format : ft },
3635 }
3736
3837 t .Run ("generic/" + string (ft ), func (t * testing.T ) {
39- testPlugin (t , & spec )
38+ testPlugin (t , & s )
4039 })
4140
4241 t .Run ("write/" + string (ft ), func (t * testing.T ) {
43- testPluginCustom (t , & spec )
42+ testPluginCustom (t , & s )
4443 })
4544 }
4645}
4746
48- func testPlugin (t * testing.T , spec * Spec ) {
47+ func testPlugin (t * testing.T , s * spec. Spec ) {
4948 ctx := context .Background ()
5049 p := plugin .NewPlugin ("gcs" , "development" , New )
51- b , err := json .Marshal (spec )
50+ b , err := json .Marshal (s )
5251 if err != nil {
5352 t .Fatal (err )
5453 }
@@ -67,7 +66,7 @@ func testPlugin(t *testing.T, spec *Spec) {
6766 )
6867}
6968
70- func testPluginCustom (t * testing.T , spec * Spec ) {
69+ func testPluginCustom (t * testing.T , s * spec. Spec ) {
7170 ctx := context .Background ()
7271
7372 var client plugin.Client
@@ -77,7 +76,7 @@ func testPluginCustom(t *testing.T, spec *Spec) {
7776 client , err = New (ctx , logger , spec , opts )
7877 return client , err
7978 })
80- b , err := json .Marshal (spec )
79+ b , err := json .Marshal (s )
8180 if err != nil {
8281 t .Fatal (err )
8382 }
0 commit comments