@@ -7,34 +7,34 @@ import (
77
88 "github.com/stretchr/testify/assert"
99 "github.com/stretchr/testify/require"
10- "gitlab.com/gitlab-org/gitlab-runner/common "
10+ "gitlab.com/gitlab-org/gitlab-runner/cache/cacheconfig "
1111)
1212
1313type credentialsResolverTestCase struct {
14- config * common .CacheAzureConfig
14+ config * cacheconfig .CacheAzureConfig
1515 errorExpectedOnInitialization bool
1616 errorExpectedOnResolve bool
17- expectedCredentials * common .CacheAzureCredentials
17+ expectedCredentials * cacheconfig .CacheAzureCredentials
1818}
1919
2020type signerTestCase struct {
21- config * common .CacheAzureConfig
21+ config * cacheconfig .CacheAzureConfig
2222 errorExpectedOnSigner bool
2323 expectedSignerType string
2424}
2525
26- func getCredentialsConfig (accountName string , accountKey string ) * common .CacheAzureConfig {
27- return & common .CacheAzureConfig {
28- CacheAzureCredentials : common .CacheAzureCredentials {
26+ func getCredentialsConfig (accountName string , accountKey string ) * cacheconfig .CacheAzureConfig {
27+ return & cacheconfig .CacheAzureConfig {
28+ CacheAzureCredentials : cacheconfig .CacheAzureCredentials {
2929 AccountName : accountName ,
3030 AccountKey : accountKey ,
3131 },
3232 ContainerName : "test-container" ,
3333 }
3434}
3535
36- func getExpectedCredentials (accountName string , accountKey string ) * common .CacheAzureCredentials {
37- return & common .CacheAzureCredentials {
36+ func getExpectedCredentials (accountName string , accountKey string ) * cacheconfig .CacheAzureCredentials {
37+ return & cacheconfig .CacheAzureCredentials {
3838 AccountName : accountName ,
3939 AccountKey : accountKey ,
4040 }
@@ -47,7 +47,7 @@ func TestDefaultCredentialsResolver(t *testing.T) {
4747 errorExpectedOnInitialization : true ,
4848 },
4949 "credentials not set" : {
50- config : & common .CacheAzureConfig {},
50+ config : & cacheconfig .CacheAzureConfig {},
5151 errorExpectedOnResolve : true ,
5252 },
5353 "credentials direct in config" : {
0 commit comments