@@ -13,7 +13,7 @@ import (
1313)
1414
1515// Test disabling remote management
16- func TestRemote_disable (t * testing.T ) {
16+ func TestRemoteConfig_disable (t * testing.T ) {
1717 tmp , cwd := testCwd (t )
1818 defer testFixCwd (t , tmp , cwd )
1919
@@ -39,7 +39,7 @@ func TestRemote_disable(t *testing.T) {
3939 }
4040
4141 ui := new (cli.MockUi )
42- c := & RemoteCommand {
42+ c := & RemoteConfigCommand {
4343 Meta : Meta {
4444 ContextOpts : testCtxConfig (testProvider ()),
4545 Ui : ui ,
@@ -68,7 +68,7 @@ func TestRemote_disable(t *testing.T) {
6868}
6969
7070// Test disabling remote management without pulling
71- func TestRemote_disable_noPull (t * testing.T ) {
71+ func TestRemoteConfig_disable_noPull (t * testing.T ) {
7272 tmp , cwd := testCwd (t )
7373 defer testFixCwd (t , tmp , cwd )
7474
@@ -94,7 +94,7 @@ func TestRemote_disable_noPull(t *testing.T) {
9494 }
9595
9696 ui := new (cli.MockUi )
97- c := & RemoteCommand {
97+ c := & RemoteConfigCommand {
9898 Meta : Meta {
9999 ContextOpts : testCtxConfig (testProvider ()),
100100 Ui : ui ,
@@ -122,12 +122,12 @@ func TestRemote_disable_noPull(t *testing.T) {
122122}
123123
124124// Test disabling remote management when not enabled
125- func TestRemote_disable_notEnabled (t * testing.T ) {
125+ func TestRemoteConfig_disable_notEnabled (t * testing.T ) {
126126 tmp , cwd := testCwd (t )
127127 defer testFixCwd (t , tmp , cwd )
128128
129129 ui := new (cli.MockUi )
130- c := & RemoteCommand {
130+ c := & RemoteConfigCommand {
131131 Meta : Meta {
132132 ContextOpts : testCtxConfig (testProvider ()),
133133 Ui : ui ,
@@ -141,7 +141,7 @@ func TestRemote_disable_notEnabled(t *testing.T) {
141141}
142142
143143// Test disabling remote management with a state file in the way
144- func TestRemote_disable_otherState (t * testing.T ) {
144+ func TestRemoteConfig_disable_otherState (t * testing.T ) {
145145 tmp , cwd := testCwd (t )
146146 defer testFixCwd (t , tmp , cwd )
147147
@@ -171,7 +171,7 @@ func TestRemote_disable_otherState(t *testing.T) {
171171 }
172172
173173 ui := new (cli.MockUi )
174- c := & RemoteCommand {
174+ c := & RemoteConfigCommand {
175175 Meta : Meta {
176176 ContextOpts : testCtxConfig (testProvider ()),
177177 Ui : ui ,
@@ -185,7 +185,7 @@ func TestRemote_disable_otherState(t *testing.T) {
185185}
186186
187187// Test the case where both managed and non managed state present
188- func TestRemote_managedAndNonManaged (t * testing.T ) {
188+ func TestRemoteConfig_managedAndNonManaged (t * testing.T ) {
189189 tmp , cwd := testCwd (t )
190190 defer testFixCwd (t , tmp , cwd )
191191
@@ -215,7 +215,7 @@ func TestRemote_managedAndNonManaged(t *testing.T) {
215215 }
216216
217217 ui := new (cli.MockUi )
218- c := & RemoteCommand {
218+ c := & RemoteConfigCommand {
219219 Meta : Meta {
220220 ContextOpts : testCtxConfig (testProvider ()),
221221 Ui : ui ,
@@ -229,12 +229,12 @@ func TestRemote_managedAndNonManaged(t *testing.T) {
229229}
230230
231231// Test initializing blank state
232- func TestRemote_initBlank (t * testing.T ) {
232+ func TestRemoteConfig_initBlank (t * testing.T ) {
233233 tmp , cwd := testCwd (t )
234234 defer testFixCwd (t , tmp , cwd )
235235
236236 ui := new (cli.MockUi )
237- c := & RemoteCommand {
237+ c := & RemoteConfigCommand {
238238 Meta : Meta {
239239 ContextOpts : testCtxConfig (testProvider ()),
240240 Ui : ui ,
@@ -269,12 +269,12 @@ func TestRemote_initBlank(t *testing.T) {
269269}
270270
271271// Test initializing without remote settings
272- func TestRemote_initBlank_missingRemote (t * testing.T ) {
272+ func TestRemoteConfig_initBlank_missingRemote (t * testing.T ) {
273273 tmp , cwd := testCwd (t )
274274 defer testFixCwd (t , tmp , cwd )
275275
276276 ui := new (cli.MockUi )
277- c := & RemoteCommand {
277+ c := & RemoteConfigCommand {
278278 Meta : Meta {
279279 ContextOpts : testCtxConfig (testProvider ()),
280280 Ui : ui ,
@@ -288,7 +288,7 @@ func TestRemote_initBlank_missingRemote(t *testing.T) {
288288}
289289
290290// Test updating remote config
291- func TestRemote_updateRemote (t * testing.T ) {
291+ func TestRemoteConfig_updateRemote (t * testing.T ) {
292292 tmp , cwd := testCwd (t )
293293 defer testFixCwd (t , tmp , cwd )
294294
@@ -310,7 +310,7 @@ func TestRemote_updateRemote(t *testing.T) {
310310 }
311311
312312 ui := new (cli.MockUi )
313- c := & RemoteCommand {
313+ c := & RemoteConfigCommand {
314314 Meta : Meta {
315315 ContextOpts : testCtxConfig (testProvider ()),
316316 Ui : ui ,
@@ -345,7 +345,7 @@ func TestRemote_updateRemote(t *testing.T) {
345345}
346346
347347// Test enabling remote state
348- func TestRemote_enableRemote (t * testing.T ) {
348+ func TestRemoteConfig_enableRemote (t * testing.T ) {
349349 tmp , cwd := testCwd (t )
350350 defer testFixCwd (t , tmp , cwd )
351351
@@ -365,7 +365,7 @@ func TestRemote_enableRemote(t *testing.T) {
365365 }
366366
367367 ui := new (cli.MockUi )
368- c := & RemoteCommand {
368+ c := & RemoteConfigCommand {
369369 Meta : Meta {
370370 ContextOpts : testCtxConfig (testProvider ()),
371371 Ui : ui ,
0 commit comments