@@ -12,14 +12,15 @@ import (
1212 goGitHub "github.com/google/go-github/v35/github"
1313 "github.com/nhatthm/aferoassert"
1414 "github.com/nhatthm/httpmock"
15- github "github.com/nhatthm/plugin-registry-github"
1615 fsCtx "github.com/nhatthm/plugin-registry/context"
1716 "github.com/nhatthm/plugin-registry/installer"
1817 "github.com/nhatthm/plugin-registry/plugin"
1918 "github.com/spf13/afero"
2019 "github.com/stretchr/testify/assert"
2120 "github.com/stretchr/testify/require"
2221 "gopkg.in/yaml.v3"
22+
23+ github "github.com/nhatthm/plugin-registry-github"
2324)
2425
2526func newRepositoryService (baseURL string ) github.RepositoryService {
@@ -105,6 +106,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
105106 Version : "1.4.2" ,
106107 Enabled : false ,
107108 Hidden : true ,
109+ Tags : plugin.Tags {},
108110 Artifacts : plugin.Artifacts {
109111 plugin .RuntimeArtifactIdentifier (): {
110112 File : "my-plugin.zip" ,
@@ -121,6 +123,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
121123 Version : "1.4.2" ,
122124 Enabled : false ,
123125 Hidden : true ,
126+ Tags : plugin.Tags {},
124127 Artifacts : plugin.Artifacts {
125128 plugin .RuntimeArtifactIdentifier (): {
126129 File : "my-plugin-no-parent.zip" ,
@@ -137,6 +140,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
137140 Version : "1.4.2" ,
138141 Enabled : false ,
139142 Hidden : true ,
143+ Tags : plugin.Tags {},
140144 Artifacts : plugin.Artifacts {
141145 plugin .RuntimeArtifactIdentifier (): {
142146 File : "my-plugin.tar.gz" ,
@@ -153,6 +157,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
153157 Version : "1.4.2" ,
154158 Enabled : false ,
155159 Hidden : true ,
160+ Tags : plugin.Tags {},
156161 Artifacts : plugin.Artifacts {
157162 plugin .RuntimeArtifactIdentifier (): {
158163 File : "my-plugin-no-parent.gz" ,
@@ -169,6 +174,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
169174 Version : "1.4.2" ,
170175 Enabled : false ,
171176 Hidden : true ,
177+ Tags : plugin.Tags {},
172178 Artifacts : plugin.Artifacts {
173179 plugin .RuntimeArtifactIdentifier (): {
174180 File : "my-plugin" ,
@@ -186,6 +192,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
186192 Version : "1.4.2" ,
187193 Enabled : false ,
188194 Hidden : true ,
195+ Tags : plugin.Tags {},
189196 Artifacts : plugin.Artifacts {
190197 plugin .RuntimeArtifactIdentifier (): {
191198 File : "my-plugin" ,
@@ -203,6 +210,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
203210 Version : "1.4.2" ,
204211 Enabled : false ,
205212 Hidden : true ,
213+ Tags : plugin.Tags {},
206214 Artifacts : plugin.Artifacts {
207215 plugin .RuntimeArtifactIdentifier (): {
208216 File : "my-plugin" ,
@@ -220,6 +228,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
220228 Version : "1.4.2" ,
221229 Enabled : false ,
222230 Hidden : true ,
231+ Tags : plugin.Tags {},
223232 Artifacts : plugin.Artifacts {
224233 plugin .RuntimeArtifactIdentifier (): {
225234 File : "my-plugin" ,
@@ -255,7 +264,7 @@ func TestIntegrationInstaller_Install(t *testing.T) {
255264
256265 file := filepath .Join (dest , result .Name , result .Name )
257266
258- aferoassert .Perm (t , osFs , file , 0755 )
267+ aferoassert .Perm (t , osFs , file , 0o755 )
259268 aferoassert .FileContent (t , osFs , file , "#!/bin/bash\n " )
260269 })
261270 }
@@ -286,6 +295,7 @@ func TestWithBaseURL(t *testing.T) {
286295 Version : "1.4.2" ,
287296 Enabled : false ,
288297 Hidden : true ,
298+ Tags : plugin.Tags {},
289299 Artifacts : plugin.Artifacts {
290300 plugin .RuntimeArtifactIdentifier (): {
291301 File : "my-plugin" ,
@@ -297,6 +307,6 @@ func TestWithBaseURL(t *testing.T) {
297307
298308 file := filepath .Join (dest , result .Name , result .Name )
299309
300- aferoassert .Perm (t , osFs , file , 0755 )
310+ aferoassert .Perm (t , osFs , file , 0o755 )
301311 aferoassert .FileContent (t , osFs , file , "#!/bin/bash\n " )
302312}
0 commit comments