@@ -36,6 +36,7 @@ func TestNewDNSProvider(t *testing.T) {
36
36
EnvUsername : fakeUsername ,
37
37
EnvPassword : fakePassword ,
38
38
},
39
+ expected : "nicru: failed to create oauth2 token: oauth2: cannot fetch token: 401 Unauthorized\n Response: {\" error\" :\" invalid_client\" }" ,
39
40
},
40
41
{
41
42
desc : "missing serviceId" ,
@@ -127,6 +128,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
127
128
PropagationTimeout : defaultPropagationTimeout ,
128
129
PollingInterval : defaultPollingInterval ,
129
130
},
131
+ expected : "nicru: failed to create oauth2 token: oauth2: cannot fetch token: 401 Unauthorized\n Response: {\" error\" :\" invalid_client\" }" ,
130
132
},
131
133
{
132
134
desc : "nil config" ,
@@ -142,7 +144,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
142
144
PropagationTimeout : defaultPropagationTimeout ,
143
145
PollingInterval : defaultPollingInterval ,
144
146
},
145
- expected : "nicru: unable to build RU CENTER client: service name is missing in credentials information" ,
147
+ expected : "nicru: serviceId is missing in credentials information" ,
146
148
},
147
149
{
148
150
desc : "missing username" ,
@@ -154,7 +156,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
154
156
PropagationTimeout : defaultPropagationTimeout ,
155
157
PollingInterval : defaultPollingInterval ,
156
158
},
157
- expected : "nicru: unable to build RU CENTER client: username is missing in credentials information" ,
159
+ expected : "nicru: username is missing in credentials information" ,
158
160
},
159
161
{
160
162
desc : "missing password" ,
@@ -167,7 +169,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
167
169
PropagationTimeout : defaultPropagationTimeout ,
168
170
PollingInterval : defaultPollingInterval ,
169
171
},
170
- expected : "nicru: unable to build RU CENTER client: password is missing in credentials information" ,
172
+ expected : "nicru: password is missing in credentials information" ,
171
173
},
172
174
{
173
175
desc : "missing secret" ,
@@ -179,7 +181,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
179
181
PropagationTimeout : defaultPropagationTimeout ,
180
182
PollingInterval : defaultPollingInterval ,
181
183
},
182
- expected : "nicru: unable to build RU CENTER client: secret is missing in credentials information" ,
184
+ expected : "nicru: secret is missing in credentials information" ,
183
185
},
184
186
{
185
187
desc : "missing serviceId" ,
@@ -190,7 +192,7 @@ func TestNewDNSProviderConfig(t *testing.T) {
190
192
Password : fakePassword ,
191
193
Domain : defaultDomainName ,
192
194
},
193
- expected : "nicru: unable to build RU CENTER client: serviceId is missing in credentials information" ,
195
+ expected : "nicru: serviceId is missing in credentials information" ,
194
196
},
195
197
}
196
198
0 commit comments