@@ -10,7 +10,6 @@ import (
10
10
"testing"
11
11
"time"
12
12
13
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
14
13
"github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig"
15
14
"github.com/stretchr/testify/assert"
16
15
"github.com/stretchr/testify/mock"
@@ -35,7 +34,6 @@ func TestLoadKeyValues_Success(t *testing.T) {
35
34
{Key : toPtr ("key1" ), Value : & value1 , ContentType : toPtr ("" )},
36
35
{Key : toPtr ("key2" ), Value : & value2 , ContentType : toPtr ("application/json" )},
37
36
},
38
- eTags : map [Selector ][]* azcore.ETag {},
39
37
}
40
38
41
39
mockClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
@@ -65,7 +63,6 @@ func TestLoadKeyValues_WithKeyVaultReferences(t *testing.T) {
65
63
{Key : toPtr ("key1" ), Value : toPtr ("value1" ), ContentType : toPtr ("" )},
66
64
{Key : toPtr ("secret1" ), Value : toPtr (kvReference ), ContentType : toPtr (secretReferenceContentType )},
67
65
},
68
- eTags : map [Selector ][]* azcore.ETag {},
69
66
}
70
67
71
68
mockSettingsClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
@@ -105,7 +102,6 @@ func TestLoadKeyValues_WithTrimPrefix(t *testing.T) {
105
102
{Key : toPtr ("other:key2" ), Value : & value2 , ContentType : toPtr ("" )},
106
103
{Key : toPtr ("key3" ), Value : & value3 , ContentType : toPtr ("" )},
107
104
},
108
- eTags : map [Selector ][]* azcore.ETag {},
109
105
}
110
106
111
107
mockClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
@@ -134,7 +130,6 @@ func TestLoadKeyValues_EmptyKeyAfterTrim(t *testing.T) {
134
130
settings : []azappconfig.Setting {
135
131
{Key : toPtr ("prefix:" ), Value : & value1 , ContentType : toPtr ("" )},
136
132
},
137
- eTags : map [Selector ][]* azcore.ETag {},
138
133
}
139
134
140
135
mockClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
@@ -163,7 +158,6 @@ func TestLoadKeyValues_InvalidJson(t *testing.T) {
163
158
{Key : toPtr ("key1" ), Value : & value1 , ContentType : toPtr ("" )},
164
159
{Key : toPtr ("key2" ), Value : & value2 , ContentType : toPtr ("application/json" )},
165
160
},
166
- eTags : map [Selector ][]* azcore.ETag {},
167
161
}
168
162
169
163
mockClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
@@ -679,7 +673,6 @@ func TestLoadKeyValues_WithConcurrentKeyVaultReferences(t *testing.T) {
679
673
{Key : toPtr ("secret2" ), Value : toPtr (kvReference2 ), ContentType : toPtr (secretReferenceContentType )},
680
674
{Key : toPtr ("secret3" ), Value : toPtr (kvReference3 ), ContentType : toPtr (secretReferenceContentType )},
681
675
},
682
- eTags : map [Selector ][]* azcore.ETag {},
683
676
}
684
677
685
678
mockSettingsClient .On ("getSettings" , ctx ).Return (mockResponse , nil )
0 commit comments