@@ -50,6 +50,7 @@ func TestCreateAppCommand_Run_Flags(t *testing.T) {
5050 mockAppService .EXPECT ().CreateApplication (gomock .Any (), requestPayload ).Return (nil ).Times (1 )
5151
5252 cmd := & createAppCommand {
53+ serverDetails : & config.ServerDetails {Url : "https://example.com" },
5354 applicationService : mockAppService ,
5455 requestBody : requestPayload ,
5556 }
@@ -115,6 +116,7 @@ func TestCreateAppCommand_MissingProjectFlag(t *testing.T) {
115116 mockAppService := mockapps .NewMockApplicationService (ctrl )
116117
117118 cmd := & createAppCommand {
119+ serverDetails : & config.ServerDetails {Url : "https://example.com" },
118120 applicationService : mockAppService ,
119121 }
120122
@@ -217,6 +219,7 @@ func TestCreateAppCommand_Run_SpecFile(t *testing.T) {
217219 }
218220
219221 cmd := & createAppCommand {
222+ serverDetails : & config.ServerDetails {Url : "https://example.com" },
220223 applicationService : mockAppService ,
221224 }
222225
@@ -266,6 +269,7 @@ func TestCreateAppCommand_Run_SpecVars(t *testing.T) {
266269 }).Times (1 )
267270
268271 cmd := & createAppCommand {
272+ serverDetails : & config.ServerDetails {Url : "https://example.com" },
269273 applicationService : mockAppService ,
270274 }
271275
@@ -289,6 +293,7 @@ func TestCreateAppCommand_Error_SpecAndFlags(t *testing.T) {
289293 mockAppService := mockapps .NewMockApplicationService (ctrl )
290294
291295 cmd := & createAppCommand {
296+ serverDetails : & config.ServerDetails {Url : "https://example.com" },
292297 applicationService : mockAppService ,
293298 }
294299
0 commit comments